Hi Everyone!!
Could anyone help me resetting the values of block styler (Type Double) to zero. I know the code for resetting
values has to be written under void Projectname::dialogShown_cb()
Basically I want to know how to use setdouble.
Please help.
It depends on what version of NX you are using. At NX6 and earlier the blocks have no methods to get/set values. Instead you have to use what is known as a PropertyList. So to set the value of a DoubleBlock you would have to do something like this:
But somewhere between NX6 and NX8.5 the blocks were enhanced so you can now call methods on them directly to get/set values. So at NX8.5 the above code could be written much simpler like this: