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
FAQ Downloads Calendar Search Mark Forums Read

Q&A Using Flexsim and building models

Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2012
Katharina Muller Katharina Muller is offline
Flexsim User
 
Join Date: Nov 2012
Posts: 31
Downloads: 16
Uploads: 0
Thanks: 11
Thanked 6 Times in 4 Posts
Rep Power: 93
Katharina Muller is on a distinguished road
Default Set color of item on transporter

Hello,

I am sending transporters with task sequences through my model and want to change the color of the item that is currently loaded, e.g. when the transporter travels over a certain network node. How to reference this correctly?

Thanks a lot, Kat
Reply With Quote
  #2  
Old 12-06-2012
Vadim Fooks's Avatar
Vadim Fooks Vadim Fooks is offline
Flexsim User
 
Join Date: Feb 2012
Posts: 67
Downloads: 26
Uploads: 0
Thanks: 50
Thanked 24 Times in 13 Posts
Rep Power: 115
Vadim Fooks will become famous soon enough
Default

Here is a model that changes the color of the transported item as a part of the task sequence.
color_on_waypoint.fsm

Alternatively you can use network node's OnArrival trigger to get the traveler and the item as first(traveler).

Code:
treenode traveler = parnode(1);
treenode current = ownerobject(c);
int toedge = parval(2); //the number of the edge that the traveler is going to next
int fromedge = parval(3); // the number of the edge the traveler came from

treenode item = first(traveler);
colorteal(item);
Reply With Quote
The Following 2 Users Say Thank You to Vadim Fooks For This Useful Post:
Jörg Vogel (12-07-2012), Katharina Muller (12-07-2012)
Reply

Tags
color, item, node, transporter

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add color to GUI Panels? JMEngelhart Q&A 1 02-16-2012 10:13 AM
Sketchup color mbaccalaro Q&A 7 04-11-2011 03:54 PM
each item has it's given location,and item's code correspond to storage location Robert Liu Q&A 3 03-28-2011 08:46 PM
3DS Changeable Color Greig Marshall Q&A 4 06-25-2008 01:36 AM
Changing the height that a Transporter drops off an item to a Processor KelvinHo Q&A 1 04-10-2008 09:29 AM


All times are GMT -6. The time now is 10:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.