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-26-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 using the rail api.
well, apart from those difficulties to understanding functions like:

getrailedgedist(num edge)
Description: Returns the total distance of the edge.
Example: getrailedgedist(2);

or understanding why a createrailsequence is not a sequence of rails but actually a sequence of cars, or a function description such as:

createrailpath:
Creates a rail path. Use the return value of this command as the second parameter of the ...


I have got other difficulties.

When I run the simulation, I have no idea where my train is. therefore, I do not know the first parameter of the following function:

createrailpath(startedge, 0, exportyardedge, trainlength + 2);


what would be a solution to this? how shall I call a train to come to the place I need?
  #2  
Old 05-27-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

Read the thread:
http://www.flexsim.com/community/for...read.php?t=394

Anthony provides some examples and command list and description. Linwei Xu also provides some examples. These are good for understands rail api commands.
  #3  
Old 05-27-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 anyway as general comment.
But still my question was something like how to call a train to arrive at certain location without knowing where it is actually.


Thread Thread Starter Forum Replies Last Post
Rail API Anthony Johnson Q&A 25 02-20-2014 09:01 AM
rail API Shahin Gelareh Q&A 6 05-14-2012 10:00 PM
Rail Planner Documentation Jamie Santa Ana Container Terminal (CT) Library 1 02-16-2012 03:02 PM
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.