Driving the value of an engraving

Hello 

I would like to be able to control the value of an engraving (Sketch text + extrude).

It is possible to link the value of the engraving to a property, it works.

Where it gets complicated is that I would like to link the value of the property to an equation. In this case, the engraving does not display the evaluated value, but the expression of the equation.

(See attachment)

Does anyone have an idea?

Gauthik


gravureliee.pdf

Hello@Gautik67

according to you what is the difference between Value/ Expression test engraving

and

10500 / Test1@testgravure

Doesn't the slash work like a separator by chance ;-)

Kind regards

1 Like

Hello

Have you tried to go from "Text" to "number"?

Although I just did the test but by taking a dimension  and "text" and it works, I have the numerical value.

Is it possible to attach your test file to us and for people like me to tell you how to link your external file (I don't use this function ;) )

Thanks in advance

EDIT: don't forget to say which version you are under.

Perhaps you need to go through an intermediate variable, a variable that you will associate with your property, or even directly usable in your engraving.

Thank you for your answers.

@Zozo_mp, I didn't quite understand what you mean by: "Doesn't the slash work like a separator by chance ;-)". My problem here is that it displays the expression instead of the value.

@FUZ3D, it doesn't work to go to "number" when referring to an equation. I work on solidworks 2018. I have attached an explanation of how to link the variables of the equations to a txt file.

 @stefbeno When you say "Intermediate variable", do youmean an equation variable or a property?


guideequationslieefichier.pdf

thank you, I'll watch it as soon as possible

Well first of all it doesn't come from the external files , but the fact that we go through the equations.

Because without I have the same problem as you

 

I keep looking

Hello

See if this is the kind of thing you want? The engraving changes depending on the dimensions of the tube


tu_avec_degaufrage_lie.sldprt

Hello 

@ac cobra 427 , In principle yes that's what I would like. Except that it refers to a quote on the coin.

And as @FUZ3D indicated: "Although I have just done the test but by taking a dimension  and "text" and it works, I have the numerical value." 

So in the case of your example it works, except that what I would like is that instead of using an existing dimension, I would just like to retrieve the value of a variable in "equations".

Hello again, 

The answer of @ac cobra 427 made me think of a technique.

I warn you, this is high-level DIY.

Nevertheless I think it's screwed up for my project, at least with solidworks. Indeed, my technique only works for numerical values while I would also potentially have text. I think I'm going to make a template with a dxf file and modify directly in the dxf data itself, the values of the texts. With a python script it should be done.

Thank you for your answers

 


bricolage_pour_lier_une_gravure_a_une_valeur.pdf
1 Like

For those who are interested, I'll give you an explanation of how I'm going to modify my dxf files.


modification_valeur_dans_dxf.pdf
1 Like

I was talking about an equation variable but indeed if there is text it is no longer applicable.

On the other hand, you could use a macro in vb to do your string processing and assign it to the property.

Which version are you on and can you share a file so that we can do tests?