Hello, how can I get view name in drawing from BOM table? I instert BOM table from some view in drawing and I need get the name of view via macro. Is it possible?
Hello, how can I get view name in drawing from BOM table? I instert BOM table from some view in drawing and I need get the name of view via macro. Is it possible?
I have got macro, which find BOM(s) on drawing, and BOM, which is selected is copied and save as excel file. It works perfectly, but I load some properties from model (to excel file), which was inserted to drawing as first.
In some cases can be more models on drawing (for example part and assembly). If I insert part as first, my macro load properties from part, but BOM is created from assembly.
I need to know from which view was generated bom.
If you have the BOMfeature object of the BOM then you can find what assembly is was created from by using API call
BOMFeature::GetReferenceModelName
This call returns the full path and name of the assembly. You can also use call
BOMFeature::Configuration
This call returns the configuration used to create the BOM from the assembly returned above.
Hope this helps
My understanding is a BOM is no longer associated with a view. The best you can do is check for which view is linked to the BOM before you link other views to a BOM. What are you looking to do?