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.

What is the best way to find what dimensions rely on a specific variable?

Laura_SmithLaura_Smith Member Posts: 4
edited November 12 in Community Support

Edited for clarity:

I have a variable defined in a Variable Studio, call it #width, that may be used somewhere in a document with a lot of part studios and assemblies. I do not want to look through the dimensions manually to find where this variable is used. I am looking for a way to search the entire document (or if not the entire document each part studio and assembly) for sketch dimensions or features that use this variable. Is that currently possible?

I found a possibly relevant improvement request that doesn't appear to have been implemented yet: https://forum.onshape.com/discussion/23931/find-global-variable-usages

Tagged:

Best Answer

  • MichaelPascoeMichaelPascoe Member Posts: 2,652 PRO
    Answer ✓

    While in a part studio, there is a "Show dependencies" option in the right click menu for a variable so that you can see what is using it down stream. This option is not available for Variable Studio yet. If it does come, it will probably be a button called "Where used", since variable studios can transcend the current document they are in.


    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   Learn How to FeatureScript Here 🔴

Answers

  • glen_dewsburyglen_dewsbury Member Posts: 1,185 PRO

    In any dimension or any dialog box that needs your variable the start typing the name and a list will pop up to select from all available. The more you type the shorter the list will become. Variables can come from part studio or variable studio,

    image.png
  • Laura_SmithLaura_Smith Member Posts: 4

    Say this variable #length is from a variable studio. If I use this variable in multiple different sketches across multiple part studios, how can you find what dimensions are driven by the #length variable?

  • MichaelPascoeMichaelPascoe Member Posts: 2,652 PRO
    Answer ✓

    While in a part studio, there is a "Show dependencies" option in the right click menu for a variable so that you can see what is using it down stream. This option is not available for Variable Studio yet. If it does come, it will probably be a button called "Where used", since variable studios can transcend the current document they are in.


    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   Learn How to FeatureScript Here 🔴
Sign In or Register to comment.