🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Setting a Default Value

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hey guys,

 

I'm writing a script, where I can set a value (e.g. for the Young's Modulus) for a material property.

My problem is that I would like to have  a default value in the window, like 210000 MPa, which I can take and proceed or change it if it doesn't suit my material. Is it somehow possible to set such a default value?

 

Kind regards and thanks in advance

Simon

 

Attached you can find the part of my script and a screenshot of the window I'm talking about:

*startnotehistorystate {Modified E of material}
set youngs_modulus [hm_getfloat 'Youngs Modulus (Steel)=' 'Enter Youngs Modulus:']
*setvalue mats id=1 STATUS=1 1= $youngs_modulus
*endnotehistorystate {Modified E of material}

 

Default_Value.PNG.61873b4ad688a3e6c30258f6cc548a3c.PNG

Find more posts tagged with