User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0
Hi Behzad,
I found the python script. Most of it is not relevant as done
for a different purpose, but I list some relevant Aimsun API
calls for you:
sectionType = model.getType( "GKSection" ) sections = model.getCatalog().getObjectsByType( sectionType
) for section in sections.itervalues(): id = section.getId()) length = round(section.length2D(10), 2) position = 0. geoPoints = [] while position < length: geoPoints.append(section.pointAtPos(position)) position += 5.0 geoPoints.append(section.pointAtPos(length)) lanes = section.getLanes() turningType = model.getType( "GKTurning" ) turnings = model.getCatalog().getObjectsByType( turningType
) for turning in turnings.itervalues(): polygons = turning.getPolygon() id = turning.getId() originSectionID = turning.getOrigin().getId()) destSectionID = turning.getDestination().getId()
You find more attributes to work with in the Aimsun
documentation (at least for v.6, don't know for newer ones).
There should be some doxygen-style HTML files with all object
types, their attributes and inheritance hierarchies.
Regards
Mirko
Am 12.05.2020 um 13:36 schrieb behzad
bamdad mehrabani:
Thank you very much Mirko,
I would be happy if you could provide a sample python
script for exploring Aimsun.
as fas ar I am aware of, currently there is no
established method for importing Aimsun networks
into SUMO.
My research group exported some Aimsun networks to
other formats using custom Aimsun scripts. In
Aimsun, you can add custom Python scripts to
automate tasks and query a lot of network elements
& attributes. We managed to export the edge and
node data to a text file. In theory, you can write SUMO
plain XML files this way.
Regards
Mirko
Aimsun simulation files cannot be read as text
files which makes everything more complicated.
In theory, you should be able to write one
Am 12.05.2020 um 12:26 schrieb behzad bamdad
mehrabani:
Hello Dear all,
I hope you and your loved ones are fine and
healthy.
I have built a big network in Aimsun. Is it
possible to import this network to SUMO? if
so, How?
I should note that I read the documentation
and I recognized that the are importers from
VISUM, VISSIM, and MATsim and Not Aimsun!
Thank you in advance for helping me with
this issue.
Regards,
--
Behzad
Bamdad Mehrabani
Ph.D. Candidate,
UCLouvain, Faculty of
Architecture, Architectural
Engineering and Urban
Planning, Tournai, Belgium
as fas ar I am aware of, currently there is no
established method for importing Aimsun networks into
SUMO.
My research group exported some Aimsun networks to
other formats using custom Aimsun scripts. In Aimsun,
you can add custom Python scripts to automate tasks
and query a lot of network elements & attributes.
We managed to export the edge and node data to a text
file. In theory, you can write SUMO plain
XML files this way.
Regards
Mirko
Aimsun simulation files cannot be read as text files
which makes everything more complicated.
In theory, you should be able to write one
Am 12.05.2020 um 12:26 schrieb behzad bamdad
mehrabani:
Hello Dear all,
I hope you and your loved ones are fine and
healthy.
I have built a big network in Aimsun. Is it
possible to import this network to SUMO? if so,
How?
I should note that I read the documentation
and I recognized that the are importers from
VISUM, VISSIM, and MATsim and Not Aimsun!
Thank you in advance for helping me with this
issue.
Regards,
--
Behzad
Bamdad Mehrabani
Ph.D. Candidate,
UCLouvain, Faculty of
Architecture, Architectural
Engineering and Urban
Planning, Tournai, Belgium