Problem on the EQUATION tutorial - SolidWorks

I'm trying to do the SolidWorks tutorial on Equations and I have the same problem every time:

When we have to enter the conditional equation

Chamfer1=if("Diamètre d'arbre de broche" <1mm, "supprimé","suppression annulée")

This is transformed as in the image where the first part of the text stops after the "tree" appostrophe. (image 

Does anyone know why?

NB: For "canceled" you have to put "Suppressed" and for "deleted canceled" -> "Unppressed"

Hello, you can't change your "tree" to "tree" to solve the problem?

1 Like

And if you put D1 it doesn't work

since as I see it via your extrusion the sketch is called D1

 

@+-))

Hello, do you put an apostrophe and not quotation marks? But yes, it may be safer not to put an apostrophe in the names of functions...

Let's say that the objective remains to understand why SolidWorks reacts like this. Is the appostrophe not allowed for this type of writing? However, it's in their tutorial and you can write it as a global variable and in equations.

1 Like
New for 2014: apostrophes are used in the equations of the part families:

In a family of parts, the equations must be preceded by a single apostrophe and an equal sign ('=).

Link: http://help.solidworks.com/2014/french/WhatsNew/c_configurable_equations.htm

So probably reserved for this one and the tutorial must be dated before 2014.

2 Likes

Have you watched this tutorial

https://www.youtube.com/watch?v=N5eAWuHEgA4

@+ ;-))

this one also introduction of equation SW 2014

which I find very nice

https://www.youtube.com/watch?v=1PGZay4GeBI

@+ ;-))

Thank you all,

I think .PL has the right answer.

As soon as I don't put an apostrophe, it works; As soon as I put one on, it's not good.