Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
[ FlexSim 23.1.1 ]
Network_Test.fsmHello,
I created points on GIS Module by Script as follows;
Table points = Table("Locations"); Model.find("GISNavigator").subnodes.clear(); for (int i = 1; i <= points.numRows; i++) { string id = points [1]; double lat = points[2]; double long = points[3]; Object point = Object.create("GIS::Point"); point.setProperty("Latitude", lat); point.setProperty("Longitude", long); setname(point, id); }
I want to connect points according to the "Connections" global table according to cells that contains value "1"
for (int i = 1; i <= routes.numRows; i++ ) { for (int j = i+1; j <= routes.numCols; j++ ) { if (routes== 1 ) { contextdragconnection ( connections, connections , "A"); } } }
I tried to connect with contextdragconnection command but failed. How should I update my script?
Thank you,
Solved! Go to Solution.