question

Axel Kohonen avatar image
0 Likes"
Axel Kohonen asked Axel Kohonen commented

Possible to set a zone partition constraint to use FlexScript?

Hi,

I would like to set a Zone partition constraint to use different values depending on the partition that we are in. It is possible using the exception rows as in the image below. However, the values are fixed. Is it possible to make them into FlexScript so that one could use e.g. a value defined in a macro as with the main limit?

Or would it be possible to get the token/partition already in the limit code so that one could write the exception rules there?

Thank you!

Kind regards,

Axel

FlexSim 17.2.5
zone partitionconstraintspartition constraint
· 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

Jordan Johnson avatar image
3 Likes"
Jordan Johnson answered Axel Kohonen commented

For now, if you want to get a macro to return its value, you should use parenthesis:

  1. (MY_MACRO)

The check for code checks for parenthesis. Maybe that will change someday, but that will work for now.

testmacro.fsm


testmacro.fsm (16.0 KiB)
· 5
5 |100000

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