SOLIDWORKS 2013 Linking Distance Constraint and Global Variable?

Hello 

 

It's all in the subject.

 

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:)

Hello

And if you do a second (piloted) climb on your varaible and you link it with your distance hill it doesn't work?

1 Like

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

 

http://help.solidworks.com/2012/French/SolidWorks/sldworks/c_shared_values.htm

Hello

I have no possible option to apply on the square where I enter the value of the distance constraint.

Right-clicking doesn't yield anything, and no drop-down menu.

https://drive.google.com/file/d/0B9JiEid0LVfmY251Q0VLZEZObmM/view?usp=sharing

Can we call a distance dimension using a bound value? I don't know how to do it.

Here is an example of a distance rating:

https://drive.google.com/file/d/0B9JiEid0LVfmREtiVUttNUxmQ1E/view?usp=sharing

 How can we call this coast elsewhere?

Thank you

 

 


capture.png

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

http://help.solidworks.com/2013/French/SolidWorks/sldworks/t_link_dimensions_use_global_variables.htm

 

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

Hello

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.

@+

3 Likes

Yes!!! Thank you Coyote, your method works!

 

Here's a little screenshot to show you:

- Enter any value when entering the distance constraint the first time.

- Click on the constraint in the tree

- Double click on the coast that appears on the screen and fill in the formula!

Just as Coyote said:)

 

Problem solved! Thank you everyone

 


capture3.png

RESOLVED TOPIC

@Florian Gasson, in Lynkoa, when you are satisfied with an answer, you must select it as the best answer and not create another answer as the best.

Thank you for all Lynkoa employees;)

 

1 Like

Not very nice for coyote... He gave you the solution and you didn't even give him the best answer.

I completely agree, but I can't find how to rectify the situation...