question

Gabriel illescas Cavazos avatar image
0 Likes"
Gabriel illescas Cavazos asked Matthew Gillespie commented

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

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

FlexSim 17.1.2
objectvariables
· 4
5 |100000

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

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

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

0 Likes 0 ·
Gabriel illescas Cavazos avatar image Gabriel illescas Cavazos commented ·

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 0 ·
Jeff Nordgren avatar image Jeff Nordgren Gabriel illescas Cavazos commented ·
@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 0 ·
Gabriel illescas Cavazos avatar image Gabriel illescas Cavazos commented ·

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

0 Likes 0 ·

1 Answer

Matthew Gillespie avatar image
3 Likes"
Matthew Gillespie answered Matthew Gillespie commented

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

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

and then finding and expanding the variables node.


exploretree.png (15.6 KiB)
variables.png (18.6 KiB)
objectdata.png (1.2 KiB)
· 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.

Gabriel illescas Cavazos avatar image Gabriel illescas Cavazos commented ·

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

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Gabriel illescas Cavazos commented ·

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

getvarnum(object, "maxcontent")
1 Like 1 ·