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
|
|||
|
|||
rail API
Hi everybody
I am trying to use the rail API when two networks exist. one network is used for normal transporters and one as rail. I cannot find out how to tell the railAPI which node is the start/first node of a railway. Did I understand correctly that it only assumes there is one network which is dedicated to the trains? any comment appreciated. |
#2
|
||||
|
||||
When you hit reset, rail API will go through all network members and build rail edges. So, you need change something in the source code in function railnetworkmanageronreset(). Maybe, you can create labels (e.g. startnode and endnode) in order to control the search area of building rail edge. Nodes out of the search area can be used to construct normal transporter network.
|
#3
|
|||
|
|||
Thanks for comment.
may i ask you how can you get access to the code of railnetworkmanageronreset to change "something"? |
#4
|
||||
|
||||
I've posted the source code for the rail API here. I think Hao may have made some changes to the rail API since that point. Perhaps those of you who are interested in working on improving the rail API should set up a common repository on BitBucket or GitHub or Google Code.
|
The Following 2 Users Say Thank You to Anthony Johnson For This Useful Post: | ||
Shahin Gelareh (05-12-2012) |
#5
|
||||
|
||||
Quote:
This is a good idea to keep developing rail API. |
The Following User Says Thank You to Hao Zhou For This Useful Post: | ||
Shahin Gelareh (05-12-2012) |
#6
|
||||
|
||||
Hi Shahin,
I just tried my idea, it works. The attached file Test.zip have two file, one is railapi.dll, you can use this to overwrite the original one. The other file is a test model. You may need to create two labels "startnode" and "endnode" in RailNetworkManager as show in fig . I would say this is a rough idea of solving this problem. There must be better way to do it. Good luck. |
The Following User Says Thank You to Hao Zhou For This Useful Post: | ||
Shahin Gelareh (05-14-2012) |
Thread | Thread Starter | Forum | Replies | Last Post |
Rail API | Anthony Johnson | Q&A | 25 | 02-20-2014 09:01 AM |
Rail Planner Documentation | Jamie Santa Ana | Container Terminal (CT) Library | 1 | 02-16-2012 03:02 PM |
Simulation study of a triple rail mounted gantry crane system | Jan Klaws | Container Terminal (CT) Library | 13 | 01-04-2012 09:03 AM |
Rail Model | BertrandRey | Q&A | 1 | 11-02-2010 03:25 AM |
How to use rail planner | zhang xin | Container Terminal (CT) Library | 0 | 09-09-2009 10:40 PM |