Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations dmapguru on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find component ID

  • Thread starter Thread starter forstudy3
  • Start date Start date
F

forstudy3

Guest
Hello,
I am having assembly file with two component lets say x & y.Now I am loading the assembly then I want to process components,but I can't use ProSelect.
So I tried using ProModelitemByNameInit() which will give me ID in the form of ProModelitem.id,but it gives me "PRO_TK_E_NOT_FOUND".
I have used somthing like this -
result = ProMdlInit(x.prt,PRO_MDL_PART,&model);
result = ProModelitemByNameIni(model,PRO_PART,x.prt,&pMdlItem); //Here I get NOt found message
So now plese help me to get Component ID or issue with this method.

Thanks
 
Use ProSolidfeatVisit and filter all objects except PRO_FEAT_COMPONENT and those that don't match "x.prt". Read the API Wizard regarding Visiting Assembly Components.
 

Part and Inventory Search

Sponsor

Back
Top