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

Laura_Smith
Laura_Smith Member Posts: 4 ✭
edited November 2025 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

  • MichaelPascoe
    MichaelPascoe Member Posts: 2,959 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.


    RENDERCAD - Photorealistic product rendering.
    CADSharp - Professional CAD + software consulting.

    ▚▞▚▞▚▞▚▞▚

Answers

  • glen_dewsbury
    glen_dewsbury Member Posts: 1,377 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_Smith
    Laura_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?

  • MichaelPascoe
    MichaelPascoe Member Posts: 2,959 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.


    RENDERCAD - Photorealistic product rendering.
    CADSharp - Professional CAD + software consulting.

    ▚▞▚▞▚▞▚▞▚