question

Patrick Cloutier avatar image
1 Like"
Patrick Cloutier asked Patrick Cloutier commented

Create object conditional flowitems

There seems to be a bug in the Create Object - Object dropbox. Unless I choose a specific Flowitem all other options do not work.bug-in-createobject.fsm

As seen in the attached example model, I want to choose a specific Flowitem type based on token.Job so I tried using a conditional decide but there is a bug when I do so. How can I report this bug?

Alternatively, how can I reference the proper flowitem type using token.Job ?

Thanks,

FlexSim 17.1.2
bugflowitemcreate objectconditional
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
2 Likes"
Matthew Gillespie answered Patrick Cloutier commented

To specify a specific flowitem in the Object field you need to put a number - the rank of the flowitem in the flowitem bin. For example, if you type a 2 directly into that field the view text updates to say Cylinder.

Switch your Job label column to use number data and then put numbers on that label.

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

Patrick Cloutier avatar image Patrick Cloutier commented ·

That works. Thanks.

But have you tried clicking on any of the options in the Object dropdown?

They all give this error even when I haven't edited anything:

Flexscript Error Line 1syntax error, unexpected identifier, expecting ')' or ',' Could not finish parsing because of previous errors.

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Patrick Cloutier commented ·

Yes, this is a bug we've fixed for 17.1.3. It's actually just the options with a backslash in the name. You can still use the code behind those options if you copy them from another version of the software and paste it in the code editor. I can post the code here if you have a specific option you need to use.

0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier Matthew Gillespie ♦♦ commented ·

Funny the software doesn't tell me to update (I have 7.1.2). It doesnt flag that there is an update.

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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