SWX BOM TABLE VBA QUESTION
SWX BOM TABLE VBA QUESTION
(OP)
We have the need to export a single BOM from our Solidworks drawings, although the format of the drawings makes this somewhat complex - our drawings will have multiple BOM's across multiple,varying pages and we only want to export one BOM.
The actual code to export the BOM in the format we need is straightforward and not a problem. Where I need some help is in figuring out a way that allows the end-user to select a specific SWX BOM table in the feature manager (out of the 2 or 5 we might have) and to then address only that selected BOM with the export code.
All of the code that I've been able to find on the internet and in the help file wants to 'walk' through the feature manager using GetNextFeature and test each feature to see if it is a BOM and then export to a file if the feature is a BOM. Unfortunately we have the need to select a specific BOM table at run-time and then execute the export code against it.
Some other factors:
-BOM is SWX, not Excel
-BOM doesn't always have the same name
Any help is appreciated!!!
Vince
The actual code to export the BOM in the format we need is straightforward and not a problem. Where I need some help is in figuring out a way that allows the end-user to select a specific SWX BOM table in the feature manager (out of the 2 or 5 we might have) and to then address only that selected BOM with the export code.
All of the code that I've been able to find on the internet and in the help file wants to 'walk' through the feature manager using GetNextFeature and test each feature to see if it is a BOM and then export to a file if the feature is a BOM. Unfortunately we have the need to select a specific BOM table at run-time and then execute the export code against it.
Some other factors:
-BOM is SWX, not Excel
-BOM doesn't always have the same name
Any help is appreciated!!!
Vince






RE: SWX BOM TABLE VBA QUESTION