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-19-2011
gadirajus gadirajus is offline
Flexsim User
 
Join Date: Aug 2010
Posts: 8
Downloads: 19
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
gadirajus is on a distinguished road
Question RE: Change the rank of output ports of a object using flexscript

Say, Queue1 is connected via output ports to
1. Conveyor1
2. Conveyor5
3. Conveyor6
4. Conveyor3
5. Conveyor2
6. Conveyor4
in the order stated.
How can the ranks of output ports be changed via flexscript.
The ranks should be changed to
1. Conveyor1
2. Conveyor2
3. Conveyor3
..........
Thanks
  #2  
Old 04-20-2011
gadirajus gadirajus is offline
Flexsim User
 
Join Date: Aug 2010
Posts: 8
Downloads: 19
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
gadirajus is on a distinguished road
Default Define sendto Port based on location name. . .

We have an intricate system of conveyors system thru which the product is sorted. The next destination is defined in a table based on the product type and current.

Is there a way to reference the destination in the "send to port" by name of the destination rather than rank. Because of the huge size of the model and the number of conveyors involved, I would like to use/refer the "send to port" to refer to the destination as defined in the table. Also, this will give a lot of flexibility for adding or deleting conveyors in the future.

The question above refers to the requirement for the logic in this request.

Thanks
  #3  
Old 04-20-2011
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

There's a post here that might help with routing through a conveyor network.

To change the ranks of ports here's an example of moving port 3 to port 2:
setrank(rank(connectionsout(<object>),3),2)
  #4  
Old 04-21-2011
gadirajus gadirajus is offline
Flexsim User
 
Join Date: Aug 2010
Posts: 8
Downloads: 19
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
gadirajus is on a distinguished road
Default Change the Rank of OUTPUT

Thank you Jason.

Tags
output port rank


Thread Thread Starter Forum Replies Last Post
how to change color of 3D object made in 3D Max qin tian Q&A 3 03-26-2013 10:27 PM
How to change FlexScript node function luis quinones Tips and Tricks 1 09-14-2010 03:50 AM
How to change the current MTTR by running flexscript commands Yu Tian Q&A 1 06-24-2010 03:06 AM
How to partially change the color of a 3D object ? Veronique Dossogne Q&A 3 04-06-2010 09:06 AM
Conect ports in the tree Sebastian Hemmann Q&A 3 01-14-2010 08:41 AM


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.