question

Sung Kim avatar image
2 Likes"
Sung Kim asked Matthew Gillespie commented

How to set conveyor width using code?

I would like to read conveyor configuration from a global table and set it in a script. I used

  1. setnodenum(node(">variables/localType/width", theConv), convWidth);

That command sets the value in the tree, but the visual does not change. I believe there is something I missed to refresh or update(?)

FlexSim 16.2.0
conveyorautobuildconveyor width
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

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

The conveyor's mesh (how it's drawn) only updates when it's told to. You can tell it to update by calling this function:

  1. function_s(theConv, "makeMeshDirty");
· 9
5 |100000

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