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.

Get part studio name within featurescript

Chris_D_Mentes_001Chris_D_Mentes_001 Member, csevp Posts: 103 PRO

Can you get part studio name within featurscript?

Why?
I'm using a CAM that allows importing of solids with metadata via a CSV file. In said file the first column must have the File path of the .x_t solids that it will import.
Since conveniently onshape can export parasolid files with the part studio name - part name (a feature I don't want to adjust) I must include the part studio name in the file name portion of the file path.
I'm currently doing this manually with a string parameter but would prefer it to be automatic.

Comments

  • Caden_ArmstrongCaden_Armstrong Member Posts: 188 PRO

    FeatureScript only allows you to get properties from bodies (parts), Part Studio level information isn't available.

    The only automatic way to do it would be with the API and to use webhooks to set a variable, or part level property.

    www.smartbenchsoftware.com --- fs.place --- Renaissance
    Custom FeatureScript and Onshape Integrated Applications
  • Chris_D_Mentes_001Chris_D_Mentes_001 Member, csevp Posts: 103 PRO

    I wish my boss understood the power of this software and invested in me to develop for it :(

Sign In or Register to comment.