Datum Curve_OTK Java
Jun 23, 2020
12:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jun 23, 2020
12:55 PM
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!
Solved! Go to Solution.
Labels:
- Labels:
-
Jlink
- Tags:
- datum curve
- OTK Java
ACCEPTED SOLUTION
Accepted Solutions
Jun 24, 2020
12:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jun 24, 2020
12:18 AM
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);
1 REPLY 1
Jun 24, 2020
12:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jun 24, 2020
12:18 AM
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);
