Problem with global variables and equations

Hi all

I have a simple question for you:)

I would like to create a global variable in a part, but I can't validate it!!! I tried starting from a new part "Equation" then click on tab  "dimension view  " "add a global variable", example "length"  I tried to put quotation marks (or not), then the value "=5mm", and there I often get a synthaxis error message. (see link)  /sites/default/files/from_ckeditor/capture_127.png

Frankly I absolutely don't understand.... I OF COURSE turn on the computer SW.

The purpose is to have in an assembly a variable of repetition steps linked to a part of the assembly.... but I already don't get to a room:(

I am currently using SW pro 2015 SP4.0

 

Thank you in advance.


capture.png

Hello

A silly question but have you ever tried without the = in front of 5mm

Yes, I really tried everything. Space not space before after. 

 

Hello

Did you click in the "Equal" box before doing OK? You have to do it to validate your "Value/Equation".

Dimitri

1 Like

Hello

Type the name of the variable in quotation marks then 1 click in the "Value/Equation" box then 1 second click in the same box to get the = in automatic then type the value then select the unit rather than typing it.

Kind regards


sans_titre.jpg
1 Like

Hello dimitri,

The "equal" box is in dark, so it's impossible to fit into it anyway.

Can't you click on it after you've filled in the value?

Hello d.roger,

I also did this ;(

Same result, synthaxis error!

 

for example if I type = 3mm, it gives me a small green cross to the right of the "value/equation" box, so I click on it, it disappears, then I click on OK, and there it gives me the error message. 

I specify that when I enter the variable, it is in blue.

Well I don't really understand, I have the impression that we are doing the same thing?! Are your settings and options good?

1 Like

Hello

Could you send your piece if possible?

What do you mean by parameter?  Is it possible to "reboot" or delete SW cache files, I really have the impression that it's a bug! I managed yesterday to enter a global variable and linked it, and since then nothing. Even in the same room or copying the room, I tried to do exactly the same thing again but impossible!!

Hello DBZ,

 

Yes, it was yesterday with this piece that I managed to enter a variable and from nothing!!!!


fibre.sldprt

I don't really understand either, I added a "length" variable in your room without any problem, I'm sending it back to you to see ...

Kind regards


fibre.sldprt

Oops, sorry mistake in my answer.

thank you but... I'll give it to you in the bull's eye:)

SYNTHAXE ERROR, does it get you a corner:)

(see the screenshot), the little cross indicates a synthaxis error!


capture2.png
2 Likes

Take a look here (if you did the update in question it can be a clue):

https://www.solidworks.com/sw/support/techkb3072630.htm

You can also see with SolidWork Rx.

3 Likes

Works very well also on my test workstation by opening your solidworks via Solidworks Rx

cf image and tell us if it works


rx.png
1 Like

Hello MaD,

No, still not. I ran a diagnostic and ran Rx but the problem remains the same.

It's still crazy to think that a global variable made yesterday works and that the news works for you but that at home is displayed as a "syntax error"!!!

*sorry I didn't read enough of it, with fewer mistakes it's better!

Hello MaD,

No, still not. I ran a diagnostic and ran Rx but the problem remains the same.

It's still crazy to think that a global variable made yesterday works and that the news works for you, but that in my case it is displayed as a "syntax error"!!!