Calling Infaworks functions via script or API

Calling Infaworks functions via script or API

andrewofabley
Advocate Advocate
1,120 Views
4 Replies
Message 1 of 5

Calling Infaworks functions via script or API

andrewofabley
Advocate
Advocate

Greetings,

 

I'm looking to automate some tasks I manually perform inside Infraworks by executing some of the built-in functions via Script or an API call. For example I'd like to

 

  • Import a Road CL (.shp or similar)
  • Convert it to a Component Road
  • Apply a predefined cross section
  • Apply grading rules
  • Export the earthworks cut / fill volumes & quantity analysis

I've looked at the 2014 API reference docs which has some excellent information within, however I could not find mention of Component roads or Earthworks calculation functions.

Can someone out there in Infraworks land (possibly related to development?) clue me up on executing these routines in an automated way?

 

Warm regards,

Andrew

AEC Collection / Safe FME / ESRI ArcGIS / Unreal Engine
Digital Engineering Lead, Compulsive Problem Solver.
0 Likes
1,121 Views
4 Replies
Replies (4)
Message 2 of 5

Karsten.Saenger
Autodesk Support
Autodesk Support

Hu @andrewofabley ,

 

the Java script API was developed for the 2014 (and older) versions of InfraWorks and never updated with the new functionality of newer versions.

I will try to find out if there is any newer information available at all.

 

Regards,

Karsten.

 



Karsten Saenger
0 Likes
Message 3 of 5

andrewofabley
Advocate
Advocate

Karsten,

 

Thanks for giving this your attention.

Any news from the development team on this?

 

Kind regards,

Andrew

AEC Collection / Safe FME / ESRI ArcGIS / Unreal Engine
Digital Engineering Lead, Compulsive Problem Solver.
0 Likes
Message 4 of 5

Karsten.Saenger
Autodesk Support
Autodesk Support

Hi @andrewofabley ,

 

sorry, no news.

Officially, InfraWorks does not have an API.

The existing JavaScript API was developed for the very first versions of InfraWorks and the commands still work. But newer InfraWorks features are not included.

In general, there is an internal discussion to create an API, especially since Dynamo scripting becomes popular with Revit, AutoCAD and Civil 3D....

 

I have just created this Idea to track the needs:
https://forums.autodesk.com/t5/infraworks-ideas/provide-an-api-for-infraworks/idi-p/8927135

 

Regards,

Karsten.



Karsten Saenger
0 Likes
Message 5 of 5

baileyfarrell1212
Community Visitor
Community Visitor
Issue:Where to find official documentation regarding JavaScript API of InfraWorks.
Solution: The JavaScript API of InfraWorks is not officially supported. See attached document [for] JavaScript API in Infraworks. 
 
0 Likes