Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Set name property of curves with featurescript

George_AndersonGeorge_Anderson Member Posts: 71 ✭✭
edited February 2021 in FeatureScript
In FS it's currently forbidden to set the name property of a curve (only works with bodies and faces).

However, you can select and rename curves in the GUI, so it seems that this shouldn't be a fundamental issue.

I have a system that needs to generate many curves and then allow the user to select them, and having a name helps me make useful messages, so the default "Curve 1", "Curve 2" is really inconvenient.

Comments

  • George_AndersonGeorge_Anderson Member Posts: 71 ✭✭
    We should remove this request. It turns out this is already possible. The "curves" listed in the GUI are actually the bodies owning the edges created by opFitSpline. So you can set the name of the owner body of the curve, and it works normally.
Sign In or Register to comment.