question

dantasvagner avatar image
0 Likes"
dantasvagner asked Jeanette F commented

Import Ressource's Travel Properties from a Global Table

Hello,

I need to import speed, acceleration, and deceleration data for a resource (fields from Properties > Travel) from fields in a Global Table.

1739540738852.png

Normally, the Properties fields allow linking to cells in the Global Table using a pipette tool, but it appears that this is not working in this case.

1739540789353.png

Thanks in advance.

FlexSim 24.0.6
propertiesglobaltemps
1739540738852.png (467.1 KiB)
1739540789353.png (48.7 KiB)
· 1
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @dantasvagner, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

You could use the a parameter table rather than a global table. It offers pre-configured options to set properties of objects in a group to the specified value.

1739776025258.png

If you want to keep using a global table you can use the same code in the Model Reset trigger to set the properties.

treenode reference = Group("GroupName");
double value = Table("TableName")[Row][Col]; Array members = reference.as(Group).toFlatArray(); string propertyName = "MaxSpeed"; for (int i = 1; i <= members.length; i++) {     Object member = members[i];     member.setProperty(propertyName, value); }

1739776025258.png (48.3 KiB)
5 |100000

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