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.

Options

Reverse Featurescript Programming

adam_pullen627adam_pullen627 Member Posts: 2 EDU
Is it possible to copy the featurescript code from a model created in a part studio? I would love to design a basic model in a part studio because of the familiarity. However, I need to create one featurescript code that will allow me to edit specific variables. This would also allow me to use one variable to correlate multiple dimensions.

Comments

  • Options
    caden_armstrongcaden_armstrong Member, User Group Leader Posts: 127 ✭✭✭
    It is possible to view the code that creates the part studio.
    If you right click on the part studio tab in the document, there should be a "Show code" option.

    But, based on the description of your goal, a configured part studio sounds like it might be what you are aiming for.
  • Options
    Evan_ReeseEvan_Reese Member Posts: 2,064 PRO
    You don't need to use the studio code directly. You can make a feature that just instantiates a part studio. So you could build your model manually with configurations (as Caden said), and write a custom feature that will derive it into any part studio based on your variables. I think it would behave the way you want.
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
Sign In or Register to comment.