Civil 3D Toolkit is a package created inside Dynamo for Civil 3D (D4C3D). Dynamo is a visual programming application that can automate tasks in Civil 3D. It is an open sourced graphical tool for design and documentation. It is a visual interface used to create logical flow of routines and used to manipulate data and generate geometry. Civil 3D Toolkit was developed to supplement the out-of-the-box nodes and provided enhancement capability that is not available in the current version. This article explains how to leverage Civil 3D Toolkit in solving basic to complex Dynamo graphs. (Looking for an introduction to Civil 3D Toolkit? Check out this presentation.)
Create a Simple and Reusable Routine
When building your Dynamo graph archives, it is very important to focus on making graphs that are scalable and reusable. Making smaller graphs that you can share with team members to learn and reuse will make Dynamo learning a lot easier.
Want to share your knowledge?
Write an article for AU
AutoCAD > Selection > Objects Types
This is one of the most common nodes that new users will want to try. On the current out-of-the-box installation, you will be able to find list of objects there. Using the Civil 3D Toolkit, you will be given more choices in the selection list.
Civil 3D Toolkit > AutoCAD > DocumentExtensions
Using DocumentExtensions.AddNewTypes you can now leverage selecting more objects like Arc, CogoPoint, Featureline, Hatch and MLeader, to name a few.
Other nodes inside DocumentExtensions also provides valuable impact to your efficiency. You can get and set the civil object styles. You can get the object handle and the object using that handle. You can also get information like coordinate system code, xrefs used and layout tabs.
Civil 3D Toolkit > AutoCAD > Arc
Converting Dynamo Arc geometry to Civil 3D geometry has been a challenge for many Dynamo users in the past. Using the Civil 3D Toolkit, you will be able to convert the Dynamo Arc geometry to Civil 3D.
Instead of creating ArcByThreePoints inside Dynamo, the toolkit will allow you to build the geometry directly to CAD.
Converting Arc from CAD to Dynamo using Object.Geometry is not implemented. Using the toolkit will allow you to convert the CAD object and convert it to Arc before the Object.Geometry will be able to recognize the object. Alternatively, you can also use the Arc.Geometry which will create the Arc in Dynamo.
Civil 3D Toolkit > AutoCAD > Selection
Selecting an object from Civil 3D is available but only limited to selecting one object at a time. Using the toolkit, you can choose multiple objects all at once or specify more objects to add to the current selection set.
Civil 3D Toolkit > AutoCAD > Hatch
The toolkit also provides some enhancement with hatch. The Hatch.ByObject returns a hatch from an AutoCAD hatch object which allows us to get information like rotation, scale, pattern and even geometry as polycurve boundary of the hatch.
Civil 3D Toolkit > AutoCAD > BlockReferenceExtensions
The ability to add block references has been part of our daily AutoCAD work in the past. Inserting the block to the exact location using Dynamo in a very efficient way is groundbreaking. It eliminates human error and provides a fast and accurate way of inserting a block. The Toolkit enhancement provides users the ability to create block references in CAD using Dynamo geometry.
Civil 3D Toolkit > AutoCAD > LayerExtensions
Toolkit allows you to create a new Layer by defining the input name and color.
Civil 3D Toolkit > AutoCAD > MText
Toolkit adds more functionality for MText and has the ability to create an Mtext by specifying insertion point, text, rotation, and height of the Mtext. By default, it will use Layer 0 and Model space.
Want more? Download the full class handout to read on.
Jowenn is an implementation consultant at Autodesk. He holds a bachelor's degree in Civil Engineering from De La Salle University and a master's degree from Ateneo De Manila University. He has over 16 years of industry experience in design and construction. He is highly skilled in Civil 3D, Dynamo, and Subassembly composer. He provides technical workflow solutions, mentoring, and consulting.