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

Translate the entire conversation x

how to get a component transformation matrix relatively to its parent assembly?

JonC_16
9-Granite

how to get a component transformation matrix relatively to its parent assembly?

i know there is a api in toolkit to get a component's transformation matrix, like ProAsmcomppathTrfGet(). but as far as i know, the assembly component path is related with current assembly or current model in toolkit.

how about i want to get a component's transformation matrix relatively to its parent assembly not current assembly.

for example, there is a assembly A, it has a component B who has a component C. instead of using ProAsmcomppathTrfGet() to get path for C to A, i want to get the transformation matrix for C to B.

is it possible to do so? can anyone show me a sample codes? many thanks.

 

2 REPLIES 2
RPN
17-Peridot
17-Peridot
(To:JonC_16)

You have already everything in your hand. If the path size is greater than 1, for example 3 your path may have these identifiers 25 11 56, then you know that 25 and 11 are assemblies, 56 can be a part or an assembly, now you get the assembly handle by 25->11 and use the path 11 to get the matrix, you just need to play with the path data. You can’t have a one assembly in session which are different in one other parent. The direction top to bottom or vice versa can be specified within the call, but I think this is known. And it is not related to the current and active assembly, you only need to specify the right handle.

Hello @JonC_16,

 

It looks like you have a response from a community expert. If it helped you solve your question please mark the reply as the Accepted Solution. 
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

Announcements

Top Tags