cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

How to get assembly component path for the component selected via ProSolidFeatVisit?

SV_10347138
7-Bedrock

How to get assembly component path for the component selected via ProSolidFeatVisit?

How to construct ProIDTable for the assembly component I got throgh ProSolidFeatVisit api. Need assembly component path for the collected part file.

 

ProIDTable id_table = {Array[0].id} works for the part file collected from the top level. If the required part file present inside a subassembly, this logic fails.

 

Tried getting asm comppath typecasting ProFeature* Array to Proselection as below, didn't work. ProSelectionAsmcomppathGet((ProSelection)&Array[0], &compPath).

 

Any ideas please?

ACCEPTED SOLUTION

Accepted Solutions
syalagudri
14-Alexandrite
(To:SV_10347138)

As you move through the hierarchy store the path in array and use it to get the component handler.

PTC toolkit document gives you all the details on how asm compo path is.

syalagudri_0-1719821082797.png

 

View solution in original post

2 REPLIES 2
syalagudri
14-Alexandrite
(To:SV_10347138)

As you move through the hierarchy store the path in array and use it to get the component handler.

PTC toolkit document gives you all the details on how asm compo path is.

syalagudri_0-1719821082797.png

 

Hi @syalagudri 

 

"As you move through the hierarchy store the path in array" any sample code examples in Toolkit directory for the reference to understand it better?

 

Thanks,
Santhosh 

Announcements


Top Tags