question

Albert L avatar image
0 Likes"
Albert L asked Joerg Vogel answered

Attributes accessible using dot notation

Objects have attributes like "centerObjects" that are accessed using dot notation, where can I find the full list of these attributes accessible by dot notation?

For example, we can use a script to find the center point objects of a decision point, "DP1"

model.find("DP1").as(Object).centerObjects[1]

model.find("DP1").as(Object).centerObjects[2]

From the model tree view, the DP1 node has properties include classes, labels, objectinfo but these aren't accessible using: model.find("DP1").as(Object).classes

my question is: What is accessible using this syntax? Is there a list documented?

FlexSim 19.0.0
flexscript
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

The main source for your request is the manual:

Reference > Coding in FlexSim > FlexScript Class Reference

There are node names in the tree colored in light blue. These nodes can you access with the "attrs" property like the example of the manual for this dot notation syntax. The nodes under some attributes branch are then again subnodes.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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