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

Datum Curve_OTK Java

SOLVED
VladiSlav
Pearl

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!

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Datum Curve_OTK Java

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

Re: Datum Curve_OTK Java

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

Announcements