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 10-26-2011
LINWEIXU
Guest
 
Posts: n/a
Downloads:
Uploads:
Default something wrong about command and RailAPIDLL

1、treenode nextnode = netnodefromrank(getnextnetnode(rankfromnetnode(cur rent), rankfromnetnode(node("/NN5",model()))));

the getnextnetnode() return num,but the tooltip tell me it return node; detail see picture.

2、and i know there are some bug in createrailpath(int fromedge, double fromdist, int toedge, double todist, int via_1, int via_2, int via_3).
so i see the RailAPIDLL,

there is some comand in "createrailpath".

“//edgenum: the output port of curnode that gets me to the next node
edgenum = getnextnode(curnode, lastnode);
//get a reference to curnode as an object
thenode = getnetnodemember(curnode);”

"getnextnode " and "getnetnodemember" are not exist in command list.
so i do not know whether exist "getnextnode " and "getnetnodemember" ,but not list in command . and what mean about "getnextnode " and "getnetnodemember" 。
Attached Thumbnails
Click image for larger version
Name:	wrong.jpg
Views:	110
Size:	87.9 KB
ID:	1529  
  #2  
Old 10-26-2011
LINWEIXU
Guest
 
Posts: n/a
Downloads:
Uploads:
Default

sorry ,I find getnextnode and getnetnodemember.

int getnextnode(int fromnoderank, int tonoderank){
int nrofcols = content(nnmembers()) + 1;
unsigned char * nextnodetable = (unsigned char *)bbgetbuffer(nnnextnodetable() );
return (int)nextnodetable [fromnoderank*nrofcols + tonoderank];
}
// getnetnodemember is quick access to the network's member table. Pass in the rank, and it will give you back the actual object.
fsnode* getnetnodemember(int noderank){
return ownerobject(tonode(get(rank(nnmembers(), noderank))));
}

Last edited by LINWEIXU; 10-27-2011 at 12:29 AM.


Thread Thread Starter Forum Replies Last Post
wrong location of Lifter in RTG Shahin Gelareh Container Terminal (CT) Library 1 10-18-2011 11:05 AM
wrong location of RTG during simulation Shahin Gelareh Container Terminal (CT) Library 2 09-30-2011 02:01 AM
How to find where goes wrong quickly john mic Q&A 2 11-03-2010 10:06 AM
some thing wrong with kinematics LINWEIXU Q&A 7 11-28-2009 05:34 AM
what is wrong my model LINWEIXU Q&A 7 08-17-2009 10:50 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.