Civil 3D Property Set Secrets

Civil 3D’s Property Sets have been around for a while now, and if you are working on a BIM project, are fundamental for adding additional asset data to both Civil 3D and AutoCAD objects. Property Set data will be included with objects when a model is exported to IFC or Navisworks.

Civil 3D Property Set Secrets

Here are some tips and examples to help you make full use of Property Sets in Civil 3D.

Labels and Tables

Property Sets can of course be used for adding annotation to our Civil 3D drawings. When Property Set data is added to a Civil 3D object, its fields are made available in the Label Text Component Editor.

We can also add the same information to Tables, although the Property Set data isn’t exposed in the Table Editor. To add PS data to a Table Column, type the required field into the Component Editor as follows:


Where PS denotes Property Set data, Pipes is the name of the Property Set, and Bedding is the name of the field. The (CP) is a formatting field which in this example denotes Capitals Preserved.

Using Pick Lists

For many types of data, we would want to restrict the user to a specific list of possible values. This can be achieved by adding a List to our Property Data.

In the Style Manager, turn off the Filters.

This gives us access to more features, one of which is the List Definitions.

In this example, we’ve added a new list for Pipe Bedding. The list “Applies To” setting must be assigned to “Manual Property Definition.”

Items can then be added to the list as required.

In the Property Data set, the list can be accessed by adding a manual property, and then choosing the “List” option for the Type of field.

Notice we also have a Formula field whose source is set to the new Bedding_Class property. This is required as a List field and cannot appear in a Civil 3D label, but the Formula field will do.

After adding this Property Set to Pipes in the drawing, the user can select a value from the defined list.

VBScript in Formulas

Complex data fields that can read properties of objects and manipulate data can be created by using VBScript in formula fields. One of the issues you may find is that you’d like to know what commands are available to you, but the VBScript Code helper is empty.

The information that populates this is saved in an XML file. Since the PS feature has been “borrowed” from AutoCAD Architecture, the definition file is still available. It can be downloaded from this link:

Copy the file into C:\Program Files\Autodesk\AutoCAD 20XX folder.

The helper will then be populated as shown:

VBScript can be used to retrieve data from Civil 3D objects by making use of the Civil 3D API.

Here is a simple example that creates a field that displays either a manhole diameter or length x width, depending on whether it is a circular or rectangular structure.

On Error Resume Next
Set oApp=GetObject(, "AutoCAD.Application")
Set oCivilApp=oApp.GetInterfaceObject("AeccXUiLand.AeccApplication.13.0")
Set obj=oCivilApp.ActiveDocument.ObjectIDToObject([ObjectID])
If obj.BoundingShape = 1 Then
Result = CStr(obj.StructureInnerDiameterOrWidth*1000)
Result = Cstr(obj.StructureInnerLength*1000) + " x " + CStr(obj.StructureInnerDiameterOrWidth*1000)
End If

The Civil Application must be set to the correct value depending on the version of Civil 3D.

The following codes are valid for recent versions:

2018 - 12.0
2019 - 13.0
2020 - 13.2

To use the code snippet shown above, the Object ID of the structure must first be defined as a property field using an Automatic property definition.

Property Set Commands

Aside from using the Manage ribbon to access the Property Set definitions, there are several commands that can be used on the command line that you might find useful:

We hope you find this post useful.

If you require any further information on Civil 3D, please feel free to get in touch.


What's new in Autodesk Revit 2022.1?

07 October 2021

Autodesk recently released their customary mid release of Revit 2022 with a host of new and useful features for the masses. In this post we shall investigate some of the new and improved features from a structural perspective.

Learn more

Autodesk Fusion 360 Machine Builder and Simulation Preview 

28 September 2021

The machine builder and simulation features in Fusion 360 allow the user to build a machine configuration and 3D machine model adding kinematic movements in preparation for simulation during manufacturing. These features are an essential addition to the prototyping phase of manufacturing, meaning parts can be machined with confidence that minimal restrictions and failures will take place.

Learn more