ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 04-10-2008
KelvinHo KelvinHo is offline
Flexsim User
 
Join Date: Jan 2008
Location: Hong Kong
Posts: 129
Downloads: 18
Uploads: 1
Thanks: 44
Thanked 23 Times in 7 Posts
Rep Power: 171
KelvinHo will become famous soon enough
Default set the location of flowitem from 2nd input port in a combiner

Hi all,

How to set the location of the flowitem, which is from the 2nd input port of a combiner in a pack action?

Thanks
Kelvin
  #2  
Old 04-11-2008
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

Kelvin,

The first thing to check is that your container is (or is copied from) a pallet. This special flowitem has code called onReceive which places the items correctly. If then the default code doesn't do what you need you can replace it with your own. Because the fowitems are created during the model run, that code must be flexscript.

Hope that helps.

Jason
  #3  
Old 04-11-2008
Kris Geisberger Kris Geisberger is offline
Flexsim Canada, Forum Moderator
 
Join Date: Aug 2007
Location: Canada
Posts: 209
Downloads: 54
Uploads: 1
Thanks: 99
Thanked 389 Times in 133 Posts
Rep Power: 451
Kris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud of
Default

A more basic approach (although less direct) is to send a message in 0 time to the combiner in the OnEntry of the combiner if port==2. In the From field of the message use item such that in the OnMessage you have a reference to the flowitem called msgsendingobject to change its location. I have attached an example model v4.32.

The OnReceive of the pallet is executed between the OnEntry and the OnMessage in this example (when the combiner moves the flowitem into the pallet). We are setting the location of the flowitem after the OnReceive has already set it once.
Attached Files
File Type: zip setting the location of items on a pallet.zip (46.2 KB, 351 views)
The Following 5 Users Say Thank You to Kris Geisberger For This Useful Post:
Michael Hartlieb (01-29-2009)
  #4  
Old 04-11-2008
Brenton King's Avatar
Brenton King Brenton King is offline
Flexsim Technical Support
 
Join Date: Jul 2007
Posts: 44
Downloads: 60
Uploads: 5
Thanks: 10
Thanked 41 Times in 15 Posts
Rep Power: 271
Brenton King is a name known to allBrenton King is a name known to allBrenton King is a name known to allBrenton King is a name known to allBrenton King is a name known to allBrenton King is a name known to all
Default

You don't have to use a pallet object if you don't want to. Any object can be a container, the pallet object just does some extra stuff too. If you are only packing one object into another or you don't care to have the container object organize the incoming flowitems it is fine to not use a pallet.

By default, the contents of the container is scaled down to show it is a child of the container, this can be turned off in the flowitem bin. To turn off scaling, go to the 'general' tab in the properties window of the flowitem you are using and turn off "Scale Contents". Then you can do as Kris said and send the message in the OnEntry and set the location of the flowitem that came through port 2.

When I do this I run the model until the flowitem is loaded into the container and then I pause it and move the flowitem into the desired location manually, then check the properties window to find out it's current location. This eliminates trial and error placement
  #5  
Old 04-11-2008
Cliff King's Avatar
Cliff King Cliff King is offline
Vice President Technical Services
 
Join Date: Jul 2007
Location: Utah
Posts: 272
Downloads: 158
Uploads: 14
Thanks: 102
Thanked 304 Times in 110 Posts
Rep Power: 412
Cliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud of
Default

Here's a couple of previous posts related to the topic of modifying flowitems that you might find useful:

http://www.flexsim.com/community/for...12&postcount=6

http://www.flexsim.com/community/for...read.php?t=216

Cliff
The Following User Says Thank You to Cliff King For This Useful Post:
arunkrmahadeva (01-29-2014)


Thread Thread Starter Forum Replies Last Post
Input data Regarding shivrash Q&A 4 04-01-2008 07:02 PM
Excel Tutorial - Need Input! Brandon Peterson Q&A 4 03-12-2008 10:54 AM
Can I set inport 1 of a combiner is "pull" while inport 2 is push? KelvinHo Q&A 3 03-05-2008 01:55 AM
Pay attention to flowitem references Iulian Marin Ion Q&A 5 12-09-2007 04:06 PM
Customizing Flowitem Attributes - a quest for the flowitem with the fewest attributes Cliff King Tips and Tricks 0 11-22-2007 12:22 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.