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 05-10-2012
Shahin Gelareh Shahin Gelareh is offline
Postdoctoral Researcher
 
Join Date: Sep 2011
Location: Polytech'Lille, France
Posts: 100
Downloads: 93
Uploads: 0
Thanks: 46
Thanked 3 Times in 3 Posts
Rep Power: 112
Shahin Gelareh is on a distinguished road
Default 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  
Old 05-10-2012
Hao Zhou's Avatar
Hao Zhou Hao Zhou is offline
Flexsim User
 
Join Date: Sep 2010
Location: Long Beach
Posts: 66
Downloads: 56
Uploads: 0
Thanks: 78
Thanked 43 Times in 25 Posts
Rep Power: 146
Hao Zhou will become famous soon enoughHao Zhou will become famous soon enough
Default

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  
Old 05-11-2012
Shahin Gelareh Shahin Gelareh is offline
Postdoctoral Researcher
 
Join Date: Sep 2011
Location: Polytech'Lille, France
Posts: 100
Downloads: 93
Uploads: 0
Thanks: 46
Thanked 3 Times in 3 Posts
Rep Power: 112
Shahin Gelareh is on a distinguished road
Default

Thanks for comment.
may i ask you how can you get access to the code of railnetworkmanageronreset to change "something"?
  #4  
Old 05-11-2012
Anthony Johnson's Avatar
Anthony Johnson Anthony Johnson is offline
Manager of Product Development
 
Join Date: Jul 2007
Posts: 440
Downloads: 86
Uploads: 4
Thanks: 171
Thanked 899 Times in 288 Posts
Rep Power: 735
Anthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond repute
Default

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  
Old 05-12-2012
Hao Zhou's Avatar
Hao Zhou Hao Zhou is offline
Flexsim User
 
Join Date: Sep 2010
Location: Long Beach
Posts: 66
Downloads: 56
Uploads: 0
Thanks: 78
Thanked 43 Times in 25 Posts
Rep Power: 146
Hao Zhou will become famous soon enoughHao Zhou will become famous soon enough
Default

Quote:
Originally Posted by Anthony Johnson View Post
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.
Hi Anthony, Thank you!
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  
Old 05-12-2012
Hao Zhou's Avatar
Hao Zhou Hao Zhou is offline
Flexsim User
 
Join Date: Sep 2010
Location: Long Beach
Posts: 66
Downloads: 56
Uploads: 0
Thanks: 78
Thanked 43 Times in 25 Posts
Rep Power: 146
Hao Zhou will become famous soon enoughHao Zhou will become famous soon enough
Default

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 Click image for larger version
Name:	test.jpg
Views:	73
Size:	11.8 KB
ID:	1767. 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)
  #7  
Old 05-14-2012
LINWEIXU
Guest
 
Posts: n/a
Downloads:
Uploads:
Default

the simple way is put the other networknode into VisualTool


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


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.