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-26-2012
Christian Norregaard Christian Norregaard is offline
Flexsim User
 
Join Date: Oct 2011
Posts: 59
Downloads: 13
Uploads: 0
Thanks: 33
Thanked 14 Times in 9 Posts
Rep Power: 115
Christian Norregaard will become famous soon enough
Default Command for point to containing treenode

Hi all.

I have been looking through the commands library like a madman in order to find a rather simple FlexScript command.

I need to find the command, that points to the treenode containing an object. Just like the rank(current,1) or first(current) point to an object under the current object in the tree.

I can't imagine that such a command doesn't exist - I just can't find it.


To specify
In the attached image, I would like a command that does the following:

command(Queue3); [Should return VisualTool7]

Does such a command exist?

Thanks in advance.
/Christian
Attached Thumbnails
Click image for larger version
Name:	Example.jpg
Views:	148
Size:	27.8 KB
ID:	1760  
  #2  
Old 04-26-2012
Carsten Seehafer's Avatar
Carsten Seehafer Carsten Seehafer is offline
FlexSim Geek
 
Join Date: Oct 2008
Location: Ritterhude, Deutschland
Posts: 230
Downloads: 45
Uploads: 1
Thanks: 474
Thanked 320 Times in 143 Posts
Rep Power: 379
Carsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud of
Default

Have a look at "up".

Example:

treenode visualtool7 = up(node("/VisualTool7/Queue3", model()));
The Following User Says Thank You to Carsten Seehafer For This Useful Post:
Christian Norregaard (04-26-2012)
  #3  
Old 04-26-2012
Christian Norregaard Christian Norregaard is offline
Flexsim User
 
Join Date: Oct 2011
Posts: 59
Downloads: 13
Uploads: 0
Thanks: 33
Thanked 14 Times in 9 Posts
Rep Power: 115
Christian Norregaard will become famous soon enough
Default

Quote:
Originally Posted by Carsten Seehafer View Post
Have a look at "up".

Example:

treenode visualtool7 = up(node("/VisualTool7/Queue3", model()));
Carsten, You have made my day - "up" is exactly what I needed.

I knew it had to be there somewhere, but it eluded me. Thanks a lot for Your help. :-)

/Christian


Thread Thread Starter Forum Replies Last Post
Exel Import - Digits after decimal point FlorianK Q&A 7 09-25-2012 10:06 AM
Decision point in Basic conveyor Manoj Kumar Q&A 3 02-29-2012 10:31 AM
treenode compilation error shashanktrivedi Q&A 1 06-09-2011 09:37 AM
Decimal Point Number Precision Michael Hartlieb Q&A 1 08-05-2009 08:53 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.