Skip to main content
18-Opal
June 21, 2018
Solved

Is there a way to get BOM(Name,Type,Level,Quantity) list information?

  • June 21, 2018
  • 2 replies
  • 1163 views

Is there a way to get BOM(Name,Type,Level,Quantity) list information?

 

I have used the ProMdlDependenciesList recursively for selected or current models to obtain information for all models.
However, the order of the arrays in this way is not the same as the model tree.

 

Is there a way to get the information of a model as an array in the model tree, or to visit the model in the order of the model tree?
For the moment, I've written code like the following file to attach:


But in fact .. I do not feel how to apply and configure filters.

 

We would like to thank you for telling us how to get BOM information(Name,Type,Level,Quantity) for all components for the top-level model.
Please...

Best answer by Ketan_Lalcheta

Go with ProSolidFeatVisit() for main assembly. Filter should be with Component and in visit function, do following:

 

  • ProAsmcompMdlGet() to get mdl handle for feature being visited (You will get mdl as feature visit is filtered by component)
  • Get Mdl type with ProMdlTypeGet()
  • If mdl is assembly, do visit features again with ProSolidFeatVisit() and filter option as Component only. 

HIH

Ketan

2 replies

17-Peridot
July 3, 2018

Hello @CHASEONHO

Use ProSolidFeatVisit to visit all components (features) of main assembly (promdl).

2-Explorer
July 4, 2018

Go with ProSolidFeatVisit() for main assembly. Filter should be with Component and in visit function, do following:

 

  • ProAsmcompMdlGet() to get mdl handle for feature being visited (You will get mdl as feature visit is filtered by component)
  • Get Mdl type with ProMdlTypeGet()
  • If mdl is assembly, do visit features again with ProSolidFeatVisit() and filter option as Component only. 

HIH

Ketan