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.


The Digital Transformation of 2020 & Beyond...

20 January 2021

2020 was a year like no other and saw many businesses having to completely transform the way their workforce operates with mobile solutions; a change in infrastructure that would normally have taken years to happen globally.

Learn more

Project and Template Standards in Revit MEP

20 January 2021

One of the great things about Revit MEP is that I can incorporate the standards for presentation, mechanical and electrical services, and deliverables into my project template so that every new project I create starts from the same position, saving me time, promoting consistency, and reducing errors in my project.

Learn more

Take good care of your emails or risk huge fines

18 January 2021

It seems like such a long time ago that we were all wondering how the General Data Protection Regulation (GDPR) would impact our businesses and it’s easy to imagine that the problem has now gone away, but ignore it, and you could be making an expensive mistake.

Learn more