I am just a beginner with Simtalk. I wanted to connect two OSM points, which have coordinates, with each other via Simtalk. So Firstly can anyone kindly help how to create a new track and then connect the two points with the help of that track?
look here for an example
track.segmentsTable is an old syntax, but it works still in version 14,2 ( I'm hoping also in 15 and later). You load the segmentsTable, write new segments (points) into the table and re-assign the segments table to the track. The source of the points in the example are anchor points of a connector.
Thanks a lot for the reply. I will try to perform the task as you described and will come to you again.
I know that this is a question which is not directly related to the topic of the discussion but wanted to get some help regarding this, how can i structure the data in the table of plant simulation , which i had in the OSM file like name of the streets, coordinates and other connecting streets?
Hope my question is clear for understanding,
since it is XML, you can import it into a tableFile (dataTable):
- add a table to your frame
- rename your file (file extension xml)
- open the tableFile, select List - Import - Select your XML file
Plant Simulation will create from the XML file a nested table, so you can easily access all information
I have already got the table and all the data but the problem is that its in the form of sub tables like i have to click on a Variable "X" then it opens more information and so on. Actually I wanted to create streets first from one point to another with the help of the coordinates given and wanted to know the syntax for it. Later on i have to connect the streets.
Nauman Ullah Khan
have a look in the head of the window of the tableFile
the first level you access with table[1,1] the nodes you will find in the sub table column 7 so all nodes:
coordinate lat in column 8, for the first node
So if i want to create a new street then i have to write the column and row number in the syntax as following:
NeuWeg :=.materialfluss.zweispurigerWeg.erzeugeObjekt(current, 300,300, fahrwegstruktur[2,i]);
but can you actually provide me the english version of this line?