Skip to main content
3-Newcomer
July 3, 2025
Question

Position of flexible parts

  • July 3, 2025
  • 1 reply
  • 993 views

Hi,

 

I've attached an example with two flexible assemblies. Each of these assemblies contains two parts whose x-position is controlled using a variable dimension. Now my task is to get the "actual" position as it can be seen in the main assembly. I obviously can't use wfcWComponentFeat::getPosition as this gets me the "as constructed" position. I tried to call wfcWComponentFeat::Refresh and wfcWComponentFeat::RefreshRelations before calling getPosition but this hasn't changed anything... Do i have to calculate the correct position myself or is there some kind of "trick" that i have to do in order to get the correct position?

 

Thanks,

 

Christoph

1 reply

3-Newcomer
July 7, 2025

Hi everybody,

 

Maybe (probably) my description was a bit too vague. So here is a screenshot from the KE-information of one of the flexible parts in the with the information i need to retrieve:

 

CS_9422499_0-1751904788090.png

For all non-native german speakers this roughly translates to: Flexible component Inherited by model FLEXIBLEBAUGRUPPE1.

 

I am able to get d0 and d1 but i get the default values (1000.0) instead of the inherited ones...

 

Any input would be appreciated as i ran out of ideas what else i could try...

 

Thanks,

 

Christoph

18-Opal
July 8, 2025

Okay my assumption you assembled on def csys, next I measured and tried to get the matrix. For me it looks okay

 

Some more details from your side would be nice 🙂

 

Take care how to create a csys and how to measure. Start with PTC defaults first. Get Up or Down is a flag as well.

# Notes if needed

# Create a Component Path Object

ps_comppath CompPath

# configure the path

CompPath config -path  "61 43"

# get the Matrix

CompPath matrix_get M

# Show all Matrix Data Index30-32 are the transformation

M config

 


doc00989.png

doc00990.png

 

Community Manager
July 11, 2025

Hello @CS_9422499

 

It looks like you have a response from a community member. If it helped to answer 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.