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
|
|||
|
|||
Access data from a coupling node
Hi All,
How do I access data from a coupling node? I need to access data from an active traveller of a connection between two nodes (see attached screenshot). I've got a pointer to the "activeTravelers" node already, so I also have a pointer to the "networkrequest" node (when it exists). Just don't know how to access its data. I've tried a few things without success. Thanks, Andre. |
#2
|
||||
|
||||
You get the data with: getnodenum( obj )
To get the othernode: tonode( getnodenum( obj ) ) to get to the object of the othernode: ownerobject( tonode( getnodenum( obj ) ) ) (Yes we all agree it is not pretty but it works!) |
The Following 3 Users Say Thank You to Steven Hamoen For This Useful Post: | ||
Jörg Vogel (12-18-2013) |
#3
|
|||
|
|||
Thanks Steven.
I was mistaken... The data type of the node is 7. So it's not a pointer (coupling), it's of the type "simple". When trying to getnodenum, it returns 0 (zero). I used getdatatype to find out the type of the node. From the manual: getdatatype(thing) Description: Returns the datatype of a node (0=none,1=number,2=string,3=pointer,4=object,5=par ticle,6=bundle,7=simple)." So do you know how to get data from a "simple" data type node? Cheers, Andre. |
Thread | Thread Starter | Forum | Replies | Last Post |
Bitbucket access | Carsten Seehafer | User Development | 0 | 09-23-2013 12:03 AM |
How to set dynamicaly closing node edge in a network node | Preethi Sivaramakrishnan | Tips and Tricks | 8 | 06-27-2013 01:35 PM |
NetworkNode Access | Abdul Mirza | Q&A | 5 | 08-09-2012 04:42 PM |
Access db.. how to?.. | Pablo Concha | Q&A | 2 | 12-06-2011 07:15 AM |
Modifying Access MDB files… without Access (and free) | Jorge Toucet | Tips and Tricks | 1 | 11-21-2008 05:13 AM |