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 07-19-2007
Brandon Peterson's Avatar
Brandon Peterson Brandon Peterson is offline
The Flexsim Consultant
 
Join Date: Jul 2007
Location: Salt Lake City, Utah
Posts: 382
Downloads: 29
Uploads: 6
Thanks: 192
Thanked 516 Times in 235 Posts
Rep Power: 490
Brandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant future
Default Moving Network Node Information into a Table

Sometimes it is necessary to be able to get the name, x, y, and z locations of all the network nodes in the model into a table. Attached is a block of code that will do just that (Base level of the model only).

The code is in Flexscript and can be executed from the script window. To change the name of the table the information is stored in change the name of the table in the following line of code:

treenode table = reftable("Temp");

Good Luck,
Brandon
Attached Files
File Type: txt Network Node Info to Table.txt.txt (1.8 KB, 435 views)

Last edited by Brandon Peterson; 07-19-2007 at 02:55 PM.
  #2  
Old 02-14-2008
Vinay Mehendiratta Vinay Mehendiratta is offline
Flexsim User
 
Join Date: Aug 2007
Posts: 13
Downloads: 7
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 155
Vinay Mehendiratta is on a distinguished road
Default thank you

Thank you Brendon, this one was really helpful.

Vinay
  #3  
Old 02-15-2008
Martijn van Oostenbrugge's Avatar
Martijn van Oostenbrugge Martijn van Oostenbrugge is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Posts: 71
Downloads: 12
Uploads: 0
Thanks: 44
Thanked 44 Times in 24 Posts
Rep Power: 268
Martijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to all
Default

If you want all the network nodes to be in the table, use the function forobjecttreeunder(). Be aware that the locations of network nodes inside containers are relative to the container, not to the model.
Attached Files
File Type: txt Network Node Info to Table_completemodel.txt (1.6 KB, 405 views)

Last edited by Martijn van Oostenbrugge; 02-15-2008 at 10:00 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.