Setting / sharing variable studio variables

graham_lock
graham_lock Member Posts: 277 PRO

Hi,

As I understand it, setVariable sets variables in the context which is fine if the variables are only required to be shared between features within the current document, but is it possible to create / update variable studio variables in FS to share across multiple documents?

Thank you.

Best Answer

  • MichaelPascoe
    MichaelPascoe Member Posts: 2,965 PRO
    Answer ✓

    Standard part studio variables can't be shared directly across documents. You would need to use the variable studio for this. The problem with the variable studio is that you can't access it from FS or measure values to it.

    You can store the variables as an attribute within a part, derive that part to another document, then retrieve the variable from the attribute of the part. Alex made a great feature for this called: Variable Library


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

    ▚▞▚▞▚▞▚▞▚

Answers

  • MichaelPascoe
    MichaelPascoe Member Posts: 2,965 PRO
    Answer ✓

    Standard part studio variables can't be shared directly across documents. You would need to use the variable studio for this. The problem with the variable studio is that you can't access it from FS or measure values to it.

    You can store the variables as an attribute within a part, derive that part to another document, then retrieve the variable from the attribute of the part. Alex made a great feature for this called: Variable Library


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

    ▚▞▚▞▚▞▚▞▚
  • graham_lock
    graham_lock Member Posts: 277 PRO

    Thank you.