Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! 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);