Autodesk / civilconnection

CivilConnection enables the exchange of information between Civil 3D, Dynamo and Revit.
94 stars 43 forks source link

CivilConnection and CivilPython

CivilConnection is a Dynamo for Revit package for Autodesk® Revit and Autodesk® Civil 3D.

CivilPython is a command for Autodesk® Civil 3D that enables the execution of Python scripts accessing AutoCAD and Civil 3D .NET APIs.

CivilConnection Main Features

Here are some features enabled by CivilConnection:

CivilPython Main Features

Here are some features enabled by CivilPython:

IMPORTANT NOTE The long term support for Python 2.7 has ended in 2020. As a policy, there cannot be new releases of tools leveraging Python 2.7, CivilPython is one of them. This means that the functionalities of CivilPython that are leveraging IronPython 2.7 need to be migrated to use CPython that is based on Python 3.7. Currently, CPython does not yet offer a seamless experience and there are constructs that are not successfully recognized if compared with IronPython (e.g., it does not implement operators between objects, it forces to change syntax on existing code, etc.). As Dynamo for Civil 3D is available since release 2020, it has been decided to disable the functionalities connected to the Python scripting in CivilPython and only enable the hidden commands that are used by CivilConnection. As a result, when calling "python" at the command line from Civil 3D 2022+ with the latest version of CivilPython you will get this message instead:

"Congratulations! CivilConnection can now be used. You can now close this message.

NOTE: The execution of Python scripts via this command has been disabled in Civil 3D 2022. IronPython 2.7 longer term support has been discontinued. It is recommended to migrate your previous Python code to CPython 3.7. They can be used as modules in Python Script nodes in Dynamo for Civil 3D. Currently there are some limitations with CPython and an investigation on how to migrate CivilPython is undergoing. Stay tuned for more updates."

If there is an older version of CivilPython installed on the machine it will continue to work.

How to use

See ./Doc/Linear Structures Workflow Guide.pdf

In ./Compiled there are the releases of the CivilConnection Dynamo package as well as CivilPython ready to use.

Release

The release numbers for the package correspond to the major release numbers of Civil 3D and Revit it will run against

Note that CivilConnection and Civil 3D with different release numbers are not compatible.

License

See LICENSING.md

Contributions

Read our contribution guidelines here: CONTRIBUTING.md