I find Trigger "Travel to Object" Conditions because the versions different

I find Trigger "Travel to Object" Conditions because the versions different

mail7WJMZ
Collaborator Collaborator
78 Views
4 Replies
Message 1 of 5

I find Trigger "Travel to Object" Conditions because the versions different

mail7WJMZ
Collaborator
Collaborator

[ FlexSim 20.1.1 ]

Hello,

I found the condition "Travel to object" condition is because the version is different. I found the condition is because the version is different.


Can you assist in updating "Travel to Object"?


Thank you.

28257-image003.png

20.0 20.0.fsm

28262-image001.png

20.1 20.1.fsm

28258-image002.png

Accepted solutions (1)
79 Views
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

The source code header is wrong declared for the variable current. It is declared as Object, but it must be Dispatcher. Dispatcher inherits Object Class, but not other way around.

0 Likes
Message 3 of 5

joerg_vogel_HsH
Mentor
Mentor

@phil.bobo, maybe you can put it onto the dev list to check the headers or to cast directly from Object to Dispatcher if properties or methods of TaskExecuter Class are involved. Many Thanks!

0 Likes
Message 4 of 5

joerg_vogel_HsH
Mentor
Mentor

The difference comes from introducing a property of TaskExecuter class. gettasksequencequeue is still an old command of the pre-dot era. Dispatcher.taskSequences is an actual class property. It is time to change from commands to class methods and properties whenever it is possible. Otherwise we will never have an progress towards classes, if the picklist options don’t show the whole new syntax.

Probably you can use,

content(gettasksequencequeue(current)) == 0

but “content” is already deprecated, so will be “gettasksequencequeue” in one of coming versions.

0 Likes
Message 5 of 5

philboboADSK
Autodesk
Autodesk

Thanks for pointing this out. I've added a case to the dev list.

In the meantime, you can press the down arrow to get the previous condition.



Phil BoBo
Sr. Manager, Software Development
0 Likes