ATTENTIONThis 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 |
#1
|
||||
|
||||
retrieving name of conveyor
I have a stupid question. For the life of me, I am not able to retrieve the name of the conveyor on which I am transporting a tote. No matter what I try I always get the node number. I have tried the following piece of code on the OnEntry trigger of the conveyor:
treenodecurrent = ownerobject(c); pt("Value="); pf(getnodename(current)); pr(); The conveyor on which my flowitem (tote) is travelling currently has only input and output ports and no center ports connected. Can someone help this Flexsim user who ate too much turkey and now am paying the price? |
#2
|
||||
|
||||
Hello Shankar,
Look at it from the bright side, you will never do this wrong again Last time I checked the getname function always returns a string so instead of "pf" I should use "pt". What do you think? Steven |
The Following User Says Thank You to Steven Hamoen For This Useful Post: | ||
Shankar Narayan (11-30-2008) |