Where can I find a list of all the variables an object has?

Where can I find a list of all the variables an object has?

gabriel_illescas_cavazos
Not applicable
19 Views
7 Replies
Message 1 of 8

Where can I find a list of all the variables an object has?

gabriel_illescas_cavazos
Not applicable

[ FlexSim 17.1.2 ]

Somebody are able to share all varnums, varstr and vartype?

0 Likes
Accepted solutions (1)
20 Views
7 Replies
Replies (7)
Message 2 of 8

Matthew_Gillespie
Autodesk
Autodesk

I'm not sure what you're asking for. Can you elaborate?



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 3 of 8

gabriel_illescas_cavazos
Not applicable

about all commands, for example the command to change number for operators is setvarnum(current,"nrofprocessoperators",2);, I want to know this "nrofprocessoperators" the options for point to any variable

0 Likes
Message 4 of 8

jeff_nordgren
Not applicable
@Gabriel illescas Cavazos

All of the commands and their parameters are documented in the User Manual accessible through the Help>Commands menu option within FlexSim. Is that what you are wanting to know?

0 Likes
Message 5 of 8

gabriel_illescas_cavazos
Not applicable

I refer to variables like "priority", "nrofprocessoperators" etc... I didnt find, can you tell me the link?

0 Likes
Message 6 of 8

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

The objects in the 3D view have a set of variables that hold information about how the object should operate. These variables are usually adjusted using the properties window of each object. However, you can access these variables through code using the variable commands (get/setvarnum, get/setvarstr, getvarnode).

You can see what variables an object has by looking at the object in the tree

6904-exploretree.png

Clicking the > button next to the object after you select it to see the object data

6906-objectdata.png

and then finding and expanding the variables node.

6905-variables.png



Matthew Gillespie
FlexSim Software Developer

Message 7 of 8

gabriel_illescas_cavazos
Not applicable

If I want ti call any variable only I need to use any of them and add " " right?

0 Likes
Message 8 of 8

The variable commands take a string which is the name of the variable:

getvarnum(object, "maxcontent")


Matthew Gillespie
FlexSim Software Developer