PDA

View Full Version : Moving Network Node Information into a Table


Brandon Peterson
07-19-2007, 02:50 PM
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

Vinay Mehendiratta
02-14-2008, 08:17 AM
Thank you Brendon, this one was really helpful.

Vinay

Martijn van Oostenbrugge
02-15-2008, 08:46 AM
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.