question

William Proctor avatar image
0 Likes"
William Proctor asked William Proctor commented

Assign Resource to Split Token

I have a parent token that has an assigned resource (crane). I split the token and want one of the new tokens to acquire an additional resource (transfer car) that is already identified as a label on the parent token. When the model gets to this step, I can see that the original parent token labels were copied to the new tokens, but it is giving me an exception (callbackNode) and not assigning the resource. I've tried splitting the parent into Independent, Child and Sibling token and looked at different ways to access the label information, but nothing is doing the trick. It there something that I am doing wrong? Thanks!

FlexSim 18.1.1
process flowlabelssplitresource assignment
· 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.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

Can you attach your model so we can see what you're doing?

0 Likes 0 ·
William Proctor avatar image William Proctor Matthew Gillespie ♦♦ commented ·

Sure. How do I attach the file so it is confidential?

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ William Proctor commented ·

You have to create a new question, and mark the question as private (check the checkbox).

0 Likes 0 ·
Show more comments

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered William Proctor commented

This isn't really an issue with the Split. In an Acquire Resource activity the first field is the Resource Reference field. This field needs a reference to a Resource shared asset in a Process Flow. However, you are giving it a reference to a 3D object.

In the field you entered token.AssignedCar, but this label is pointing at, for example, the 3D object Car6 in the model. This label needs to point at the Car6 Resource in Process Flow.

Normally you would just sample the resource, but if you need to refer to it in code you can use the getactivity command:

getactivity(processFlow, "Car6")
· 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.

William Proctor avatar image William Proctor commented ·

Thanks Matt. I'll try that. I figured out another way by just referring to the node on the tree, but your method would be better.

0 Likes 0 ·

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.