question

Daniel avatar image
0 Likes"
Daniel asked Jeanette F commented

Why Does a Scripted Conveyor Differ from a Manually Created Conveyor in FlexSim?

I am using the following code to create a conveyor in FlexSim:

  1. treenode conveyorNode = node("/project/library/fixedresources/Conveyor");
  2. newObj = createinstance(conveyorNode, model());

However, the conveyor created using this script looks different from the one created manually (as shown in the attached image). Specifically, the one created manually allows adding elements like Decision Points or Stations, while the scripted version does not.

1736233634807.png

Could anyone explain why this discrepancy exists? Is there an additional step or property initialization required to make the scripted conveyor fully functional and identical to the manually created one?

FlexSim 24.2.1
conveyorflexscript
1736233634807.png (98.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.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

You have created a legacy conveyor. As you see in its path it is a Fixed Resource.

Conveyors of the conveyor module have got a different path.

"MAIN:/project/library/conveyor/Conveyor"

· 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.