1 Reply Latest reply on Jul 13, 2018 3:08 PM by Henk Bruijn De

    Dimension changes global variable.

    Ivan Kharpalev


      Very common story that surprised me a lot. We just set a dimension to a global variable and WOW!

      1 we have a globalVariable and a dimension




      1 globalVariable and dimension.png


      2 we set the dimension equal to this variable

      2 set dimension eq to var.png


      3 ok the dimension is made equal (linked) to var

      3 dimension is seted to var.png


      4 we change the dimension type to diameter (as we intended according to the variable name)

      4 change dimension type.png


      5 we begin dimension edit to set it correct because it is not the value we want

      5 begin dimension edit.png


      6 we again set this dimension to global var

      6 again set this dimension to global var.png


      and WOW it changes the global variable!

      7 it changes global var.png


      why? and are there other manipulations that can implicitly and unnoticed change global variables?

      Thank you!

        • Re: Dimension changes global variable.
          Henk Bruijn De

          Don't know why this is not answered yet. It seems not complicated to me.

          I'm currently investigation the behaviour of Global Variables myself and ran into this thread.

          The GV behaviour as described by Ivan Kharpalev seems normal to me.

          The GV contains just a number and does not know if it used for radius or diameter.

          When you change the sketch-radius to sketch-diameter, than Solidworks keeps the size of the circle unchanged.

          The same thing can happen if you change corner angle from degrees to radians.