Bachelor22 4 Report post Posted November 26, 2018 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} Quote Share this post Link to post Share on other sites
vipin 47 Report post Posted November 26, 2018 Hi @Bachelor22 add default value after the string set youngs_modulus [hm_getfloat "Youngs Modulus (Steel)=" "Enter Youngs Modulus:" 210000] tinh, Bachelor22 and Livil Lyle like this Quote Share this post Link to post Share on other sites
Bachelor22 4 Report post Posted November 26, 2018 Thank you @vipin! that helped me a lot. Quote Share this post Link to post Share on other sites