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
|
||||
|
||||
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 Last edited by Brandon Peterson; 07-19-2007 at 02:55 PM. |
#3
|
||||
|
||||
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.
Last edited by Martijn van Oostenbrugge; 02-15-2008 at 10:00 AM. |