question

Justin Brozzo avatar image
0 Likes"
Justin Brozzo asked Adrian Haws edited

Is it possible to "delete" and object or simply remove and object from a queue if an object is sent to a different queue.

sample1a.fsm @Jeff Nordgren @Matt Long

As you can see in model: sample1a the main line triggers a sub line where an object match is created. What I am looking for is if something was to enter queue 20 I would like to remove an object from queue6 (and in my real model potentially other queues as well)...

This would be repeated when an object enters queue21 I would want something to be removed from queue 12.

FlexSim 16.1.1
queueconnectionsdestroy objectremoval
sample1a.fsm (22.8 KiB)
· 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.

Justin Brozzo avatar image Justin Brozzo commented ·

@Jeff Nordgren - I attached a model if you could show me what youre talking about I would greatly appreciate it

0 Likes 0 ·

1 Answer

Matt Long avatar image
0 Likes"
Matt Long answered Justin Brozzo commented

This is a duplicate, although more understandable, question. See the answer here:

https://answers.flexsim.com/questions/25925/is-it-possible-to-delete-and-object-or-simply-remo.html

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

Matt Long avatar image Matt Long commented ·

The attached model destroys a flowitem in Queue6 or Queue12 when a flowitem enters Queue20 or Queue21 respectively.

I created a centerport connection between the queue's so I could easily reference them and then I added the following code to the OnEntry trigger of Queue20 anddestroyflowitems.fsm Queue21:

destroyobject(first(centerobject(current, 1)))
1 Like 1 ·
Justin Brozzo avatar image Justin Brozzo Matt Long commented ·

@Matt Long

That worked great! Thank you!

0 Likes 0 ·
Justin Brozzo avatar image Justin Brozzo commented ·

I re-posted with a sample model because I attempted to do that however I didn't have any success using that code... Would you be able to show me what you are talking about in that sample model please using the code not the process flow?

0 Likes 0 ·
Justin Brozzo avatar image Justin Brozzo commented ·

@Matthew Gillespie would it be possible for you to implement this in the model above bit using process flow and I am in a time crunch.

This semester I will spend the time learning process flow but my larger model is so heavily based on the 3D version I do not want to complicate things.

I have been working with @Sam Stubbs on creating something like this but we haven't quite nailed it down.

With that being said I want to thank you all:

@Sam Stubbs @Matthew Gillespie @Logan Gold

All of your support has been greatly appreciated this summer and you truly have an amazing support team!

0 Likes 0 ·