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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Translate the entire conversation x

JS API Curve and analysis problem

ilyachaban
16-Pearl

JS API Curve and analysis problem

Hi, i have a bit more complex problem which actually consistas of two simple problems.


Model structure of most of our hoses looks like this

ilyachaban_0-1751961450178.png


but for some reason when doing save as in windchill it does this to analysis feature

ilyachaban_1-1751961508580.png

it measures only part of a curve (composite curve)


using JS API i need to get curve and check if it's a parent of a analysis but here comes an interesting part 

when referencing part of a composite curve it still creates parent connection 

how can i check if analysis references whole curve but not it's parts and in case of referencing only part of it repair analysis feature to reference whole curve 




When i'm using model.ListFeaturesByType(false, pfcFeatureType.FEATTYPE_COMPONENT) i'm getting feature curve which than i can't convert to curve to use listElements() 

when i want to get it from model.ListItems(pfcModelItemType.ITEM_CURVE); it doesn't provide anything like there is no curves in model but they clearly are even in the tree

 

1 REPLY 1

Hi @ilyachaban 

Thank you for your question. 

Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.

Also, feel free to add any additional information you think might be relevant.

 

Best regards,


Catalina
PTC Community Moderator
PTC
Announcements

Top Tags