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.

Can a variable in a Part Studio be used in an Assembly?

tim_patersontim_paterson Member Posts: 7 EDU
The documentation page for Variable Table (Part Studio) says:

A Variable table is created in a document and the variables therein are immediately available for use in all Part Studios and Assemblies in that document workspace.

But the only way I've found to use variables in an assembly is to use a Variable Studio. It does not seem to work with a variable in a Part Studio (as that documentation line specifically says it does). So is the documentation incorrect?  And is there any easy was to transfer all the variables I already created to the new Variable Studio?

Best Answers

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,714
    Answer ✓
    Help is either wrong or misleading. You cannot copy variables, so you would have to manually re-enter them into a Variable Studio.
    Senior Director, Technical Services, EMEAI
  • eric_pestyeric_pesty Member Posts: 1,947 PRO
    Answer ✓
    Yeah that's poorly worded... I think it's trying to point out that you can create a variable studio directly from within a part studio, which then becomes available across all assemblies and part studios.
    But as you point out "regular" part studio variables are only available within the part studio itself.

Answers

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,714
    Answer ✓
    Help is either wrong or misleading. You cannot copy variables, so you would have to manually re-enter them into a Variable Studio.
    Senior Director, Technical Services, EMEAI
  • eric_pestyeric_pesty Member Posts: 1,947 PRO
    Answer ✓
    Yeah that's poorly worded... I think it's trying to point out that you can create a variable studio directly from within a part studio, which then becomes available across all assemblies and part studios.
    But as you point out "regular" part studio variables are only available within the part studio itself.

  • David_YL_NguyenDavid_YL_Nguyen Member, Onshape Employees Posts: 120
    There is a bit of a workaround to bring your variables from a Part Studio table to a Variable Studio.

    1. Copy your variable table in Part Studio
    2. Create or open Variable Studio.
    3. Create a variable name, otherwise it doesn't work.
    4. Click on variable name, don't double click to input! Cmd+v (Mac) to insert to table content.

    Check my gif. 

    Hope this helps. Cheers

  • tim_patersontim_paterson Member Posts: 7 EDU
    The documentation says you can paste, but I couldn't figure out how. It's certainly a hidden feature and thanks so much for demonstrating it.
  • lewis_knapplewis_knapp Member Posts: 2

    Thanks David_YL_Nguyen. Solved my problem moving part studio variables into a variable studio. Seems like "paste table" is not an unreasonable feature.

Sign In or Register to comment.