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 05-08-2013
George Serhan George Serhan is offline
Flexsim User
 
Join Date: Oct 2011
Posts: 49
Downloads: 10
Uploads: 0
Thanks: 59
Thanked 0 Times in 0 Posts
Rep Power: 107
George Serhan is on a distinguished road
Default Itemtype color change in Combiner

Hi,
Is there a way to change the color of items that go into a pallet in the combiner. The items are coming from port 2. When I tried to change the color using "colorarray" command with "item" as the object, it only changed the pallet color. Is there a command to point to the boxes inside the pallet so I can control the color.
Thanks
  #2  
Old 05-09-2013
Sebastian Hemmann's Avatar
Sebastian Hemmann Sebastian Hemmann is offline
Flexsim User
 
Join Date: Sep 2009
Location: Braunschweig (Germany)
Posts: 439
Downloads: 52
Uploads: 0
Thanks: 472
Thanked 217 Times in 154 Posts
Rep Power: 319
Sebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to behold
Default

Hi, the easiest way would be to use another Itemtype for your boxes and bring in a "if" statement to find out if the Itemtype is correct.

Also you could ask "port" in the "if" statement. So it should look for example like this:

if(port==2)
{
colorarray(item);
}
__________________
Hemmi
The Following User Says Thank You to Sebastian Hemmann For This Useful Post:
George Serhan (05-09-2013)
  #3  
Old 05-09-2013
Sebastian Hemmann's Avatar
Sebastian Hemmann Sebastian Hemmann is offline
Flexsim User
 
Join Date: Sep 2009
Location: Braunschweig (Germany)
Posts: 439
Downloads: 52
Uploads: 0
Thanks: 472
Thanked 217 Times in 154 Posts
Rep Power: 319
Sebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to behold
Default

Solution with Itemtypes:

if(itemtype==2)
{
colorarray(item);
}
__________________
Hemmi
The Following 2 Users Say Thank You to Sebastian Hemmann For This Useful Post:
Jörg Vogel (05-09-2013)
  #4  
Old 05-09-2013
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

Hello George,

OnExit the boxes are the content of item. The reference can be the rank(item, num)

Jörg
The Following 2 Users Say Thank You to Jörg Vogel For This Useful Post:
Phil BoBo (05-09-2013)
  #5  
Old 05-09-2013
George Serhan George Serhan is offline
Flexsim User
 
Join Date: Oct 2011
Posts: 49
Downloads: 10
Uploads: 0
Thanks: 59
Thanked 0 Times in 0 Posts
Rep Power: 107
George Serhan is on a distinguished road
Default

Hi Jörg,
You are right, the items (pallet and boxes are one after being combined) (OnExist command) is what I used to change the color once the pallet is full. I ended up pointing to the boxes using a node, then looping through the number of boxes using "objectexists" command. I think it is similar to the rank(item,num) you mentioned.
Thanks
George


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
Change cell color in Exceltable Stefan Jerenz Tips and Tricks 6 04-24-2012 05:17 AM
How to change the color of my 3DS model? Warren Wu Q&A 2 09-04-2011 08:49 AM
How to partially change the color of a 3D object ? Veronique Dossogne Q&A 3 04-06-2010 09:06 AM
How to change color when full? Jamie Santa Ana Q&A 2 09-23-2009 06:00 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.