Python programming to Automate process in Civil 3D 2019?

Python programming to Automate process in Civil 3D 2019?

Anonymous
Not applicable
9,705 Views
5 Replies
Message 1 of 6

Python programming to Automate process in Civil 3D 2019?

Anonymous
Not applicable

Hi,

 

I was wondering if there was good way to make automatic process programming in Civil 3D 2019 using python language.

 

If not, what would be the best language to learn to program Automatic process into Civil 3D 2019. 

At best I would like to learn a language that would serve for other program also.

 

Thanks!

 

 

Jim

0 Likes
Accepted solutions (1)
9,706 Views
5 Replies
Replies (5)
Message 2 of 6

MikeEvansUK
Advisor
Advisor

You can use Iron Python in Civil3d, I believe the Dynamo application uses Ipython and really acts as a wrapper to transpose the code to the native .net format.

 

Civil3d is built on .net framework to which there are different languages you can use. Really the best bet is to read the developers guide which has some helpful tutorials. Other good resources blogs and the Autodesk University papers.

 

 

Mike Evans

Civil3D 2022 English
Windows 7 Professional 64-bit
Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz (8 CPUs), ~4.0GHz With 32768MB RAM, AMD FirePro V4900, Dedicated Memory: 984 MB, Shared Memory: 814 MB

0 Likes
Message 3 of 6

Anonymous
Not applicable

Hi Mike,

 

Thanks for your answer.

 

I did heard about IronPython but all reference seems to be old and I was wondering if it was an actual and viable option.

 

I wanted to learn Python because it will be usefull for me for other use than Autocad programming but my main goal is to program for Autocad so I want to be sure this will be working.

 

Thanks!

0 Likes
Message 4 of 6

MikeEvansUK
Advisor
Advisor
Accepted solution

If you really want to be actually programming for AutoCAD or any derivative of you really should be learning and using the .net framework. If you would rather, stick to Dynamo and create your own python scripts.

 

Outside of Dynamo the python code will still need a translator (wrapper) to enable it to work so only some code would be in Python the rest in .net.

 

 

Mike Evans

Civil3D 2022 English
Windows 7 Professional 64-bit
Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz (8 CPUs), ~4.0GHz With 32768MB RAM, AMD FirePro V4900, Dedicated Memory: 984 MB, Shared Memory: 814 MB

0 Likes
Message 5 of 6

Anonymous
Not applicable

Alright!

 

Thanks for your reply!

0 Likes
Message 6 of 6

Anonymous
Not applicable

Yes there are ways to automate things on Civil 3D using Python (IronPython to be specific) via dynamo and since dynamo player was introduced it is pretty nice to do things via dynamo.

Some of the automation include provision of labels at required chainages, extraction of levels of different profiles, finding the places on map given the coordinates (dynamo script can draw circles around that coordiantes, making it easy for users to find the location), preparation of cross sections given the parameters

0 Likes