Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
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.
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);
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);