Basically, I use global variables a lot with the Equations tool. I put it everywhere in my sketches, in all my parts of my assembly.
And I just noticed that I couldn't assign a global variable to a distance constraint, when I apply that distance constraint to two parts in my assembly. I type ="A1" for example so that the distance between my two parts is A1 (A1= 10mm for example, defined in my equations), and it doesn't work, Solidworks tells me "Please enter a number greater than or equal to 0 and less than or equal to 500000"
Does anyone have a solution? thank you in advance:)
When you choose to assign an equation to your rating, you have a small drop-down menu. If you click on it, you have a second choice. something like "linked values".
Choose this option for your first rating. When you want this value again, you will only have to call the coast
Sorry, I must have read a bit quickly yesterday ... and I didn't understand that it was during the application of the constraints. I thought you were in your sketches.
That said, if it can help you with the sketches, see the following link
Unfortunately, I wouldn't have a simple solution for you in this case. The trick to get around it is to create shots at the desired distance. All you have to do is make the room(s) coincide with this plan.
This way, when you modify your assembly, you will only have to move a single plane instead of a multitude of constraints
Since SolidWorks 2015, it is possible in the feature manager to directly fill in an equation.
In your case in 2013, I recommend that once the distance constraint has been filled in with some kind of value, you click on your constraint in the feature manager to have a dimension that appears on the screen and can therefore double click on it to add an equation pointing to your global variable.