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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Datum Curve_OTK Java

VladiSlav
17-Peridot

Datum Curve_OTK Java

Hello everyone!

 

Please tell me how to programmatically access the datum curve?
Here is my code but it does not work:

 

solid.GetFeatureByName("Curve").ListSubItems(ModelItemType.ITEM_CURVE);

 

I need to programmatically set equations in a curve, is it possible to do this?

 

Thanks in advance

With respect!

ACCEPTED SOLUTION

Accepted Solutions

Maybe someone will be useful.
I did like this:

Feature feature = solid.GetFeatureByName("Curve");
stringseq strseq = stringseq.create();
strseq.append("x = 4 * cos ( t * 360 )"); 
strseq.append("y = 4 * sin ( t * 360 )");
strseq.append("z = t");
feature.SetRelations(strseq);

View solution in original post

1 REPLY 1

Maybe someone will be useful.
I did like this:

Feature feature = solid.GetFeatureByName("Curve");
stringseq strseq = stringseq.create();
strseq.append("x = 4 * cos ( t * 360 )"); 
strseq.append("y = 4 * sin ( t * 360 )");
strseq.append("z = t");
feature.SetRelations(strseq);
Announcements


Top Tags