question

JoseVM avatar image
0 Likes"
JoseVM asked Matthew Gillespie commented

how to code old expresions such as "setnodenum" and "setvarnum"

Hello everyone,

I was used to used flexsim in past vesions and I have recently come back. As I can see, flexscript has changed a little bit and I have some questions about its new code.

I would like to use the expression "setnodnum(node,value)" and "setvarnum(object, var, value)" but I can see that now they are deprecated. I see that they still work anyway but I would like to get use to the new code. I have looked to the guide but I find it a little bit unclear to me (it says that I should use treenode.value). Could anyone help me? thanks in advance!

Thanks a lot in advance


FlexSim 19.1.0
flexsim 19.1.0setvarnumsetnodenum
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Matthew Gillespie commented

to set

  1. Node.value = 1.2;

to get

  1. double myVar = Node.value;
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.