As many of my posts start out, this one comes from one of my clients. He was using the Pressure Networks in Civil 3D 2015 and noticed that when he added the inner diameter of the pipe to a label, it came up with question marks.

Question Marks for Inner Diameter

Question Marks for Inner Diameter

To add to the confusion, even though there is a property in the pipe object for inner diameter, it was grayed out and couldn’t be changed.

Inner Diameter Can't be Edited

Inner Diameter Can’t be Edited

So, this got me to thinking, there’s got to be some way to add that information to the pipe! Well, let’s go edit the catalog. If you aren’t familiar with it, you can edit your pressure network catalog using the Content Catalog Editor.

To open your Content Catalog Editor, go to your Windows Start Menu and find the location where you can start Civil 3D, there you will also see the Content Catalog Editor.

Content Catalog Editor Start

Content Catalog Editor Start

In the Content Catalog Editor (CCE), open your pressure network catalog. Civil 3D comes with three of them, choose the one you are using or the one you’ve created for your company. In this example, I’ll use the pushon catalog. By default, they can be found here for the imperial catalogs: C:\ProgramData\Autodesk\C3D 2015\enu\Pressure Pipes Catalog\Imperial. Change the obvious for metric.

Once the catalog is open, go to your pipes, and add the property for your inner diameter.

Edit the Inner Diameter

Edit the Inner Diameter

One thing to note, most 8″ pipe does not have an inner diameter of 8″. One manufacturer of C900 PVC pipe had 8″ PVC that varied from 7.26″ to 8.28″ depending on the pressure classification.

Now that the catalog has been modified, you’ll need to restart your Civil 3D and replace the pipes in your drawing that are missing the inner diameter. Unfortunately, I don’t know of a way to update the pipes that are in the drawing already (with the missing inner diameter) to show the new inner diameter in the catalog.

 

 

<If you don’t like reading, there’s a video at the bottom of the post.>

I’ve been playing around with InfraWorks for a bit now and I’ve always meant to but never got around to figuring out the Style Rules until now. All I’ve seen with regards to the rules is how to randomize your display. Well, I don’t want to randomize it, I want it to be very specific! I want my offroad roads to look like offroad roads, I want my highways to look like highways, and I want my local roads to look like local roads. Well, read on and see how it’s done! It’s actually a lot easier then I expected.

This is what I’m getting, all the roads look the same:

What I Get

What I Get

And this is what I want, the roads stylized based on their classification:

What I Want

What I Want

First of all, you need a data source with information in it that you’ll use to stylize the InfraWorks objects. In the example I’m using, I downloaded the data from the GIS department for Loveland, Colorado. To get a quick idea of the data that’s in the shape file for the roads, I attached it to a Civil 3D drawing (just drag the .shp file into the Civil 3D drawing) and opened the data table. This particular data source has a field called ROAD_CLASS. Some of the values for ROAD_CLASS are: RAMP, LOCAL, HWY, CLCTR-MINOR, etc.

Road Classification Data Field

Road Classification Data Field

This is the data that I want to use to determine the style of the road. I’ve broken the process up into three steps, adding the data to the model, creating the style rule, and applying the style rule.

Adding the Data to the Model

I’m not going to get into how to add the shapefile to the model here, what I’m going to discuss is how to get that particular piece of data from the shapefile and add it to each road in the model. When configuring the data source (this can be done when it’s added or after the fact if needed), you’ll need to tell InfraWorks to include the piece of data you need. In this example, I’m going to add it to the description of the road. On the Common tab of the Data Source Configuration, simply hit the pull down to add the ROAD_CLASS field to the description of the roads.

Adding GIS Data Fields to InfraWorks Objects

Adding GIS Data Fields to InfraWorks Objects

Note: If you want to add the data to a different property, you can do this on the Table tab of the Data source Configuration dialog box.

Close and refresh and now we are ready to create the Style Rules.

Creating the Style Rule

Now, we want the style of these roads to be determined from the description so, let’s create a Style Rule. To open the Style Rules, select the big orange I in the top left of your model (I’m using 2014 R4 for this), select the button just to the right of it, “Create and manage your model”, and then select Style Rules.

Open the Style Rules Panel

Open the Style Rules Panel

In the Styles Rules, select the tab on the left for the feature you want to add the rules to (in this case I’m going to choose Roads) and then add the new rule by selecting the green plus. Give the rule a name (I’m using the roadway classification here) and then click OK.

Add a Rule

Add a Rule

Once the rule is added, double click on it to edit the rule. In the Rule Editor, you can change the name of the rule and add a description to the rule if you would like. The important part here are the “Expression:” and “Styles:” sections.

Rule Editor

Rule Editor

In the “Expressions:” section, select the Edit button to edit the expression (sounds obvious, doesn’t it?). In the Create Filter Expression dialog box, double click the property you want to filter on (in this case expand out Common and choose Description). This will add that property to the expression. Now, I only want this rule to be applied to the roads with a specific description so, type an equals sign “=” in the expression after DESCRIPTION. Finally, add the property to the expression. If you know it, you can just type it. If you want to select one of the properties that is in the data source, on the right hand side, find the property and then double click on the value to add it to the description.

Create the Expression

Create the Expression

After hitting OK, you’ll be back in the Rule Editor. In the “Styles:” section, simply add the styles you want this rule to apply. If you want them all to be the same, simply add the one style you want. If you want them to vary, you can add multiple styles and then adjust the probability to force one style to be added more often then another.

Completed Rule

Completed Rule

Now continue the process until you’ve added a rule for each roadway type you have.

Rules Created

Rules Created

Applying the Style Rule

This is the easiest part, once the Style Rule has been created, all you need to do is click on the Run Rules button at the bottom of the panel.

Run the Rules

Run the Rules

There are also options to export and import the Rule Styles so you don’t have to recreate them every time you need to do this.

Now get out there and have fun playing around with InfraWorks!

Infraworks. Wow. What a great program. I love this thing, I truly do. If Autodesk keeps up development on this, it’s going to rock the industry. The problem with it as it stands today is, there are four different versions of it. That’s right, four.

Infraworks – Comes with the Infrastructure Design Suite Premium
Autodesk InfraWorks 360 Pro – Available to lease
Autodesk Roadway Design for Infraworks 360 Pro – Available to lease
Infrastructure Design Suite Ultimate – This pretty much tells you what it is.

So, what’s the difference? In short, if you want ALL the tools, you’ll need the Autodesk Roadway Design for Infraworks 360 Pro. It has tools that the Ultimate Design Suite doesn’t have, such as Sight distance analysis and Documentation services. The Documentation services is a cloud service that will allow you to create plan and profile drawings in Civil 3D without needing to open, or even install, Civil 3D (sounds pretty cool to me).

You can find a matrix that shows what each version has HERE. In case the website has changed, I’ve printed a page of the Autodesk website and included it HERE for you to download.

Note from Brian: Something new in the 2015 release. The images plot. HERE

So AutoCAD 2014 has this cool new feature called Live Maps and Geographic Location (basically, AutoCAD now owns the coordinate systems for Civil 3D and Map 3D). When a coordinate system is assigned to the drawing, you get a new tab on the ribbon allowing you to display an aerial map, a road map, and do some cool stuff.

The problem is, this isn’t in Civil 3D 2014 at all. Here are the steps to add this ribbon tab to Civil 3D 2014.

HERE is a video showing the steps

  1. Open AutoCAD 2014. This can either be AutoCAD 2014 or Civil 3D 2014 as AutoCAD 2014.
  2. Go into the CUI (Customize User Interface) dialog box (type CUI at the command line).
  3. In the CUI, go to the Transfers tab and create a new CUI file.
    CUI Transfer Tab

    CUI Transfer Tab 

     

  4. Drag the Geolocation ribbon tab from the ACAD.CUIX file to your new CUI file (just drag and drop)
    Drag and Drop

    Drag and Drop

     

  5. Save the CUI file and close AutoCAD.
  6. Open Civil 3D 2014 and type CUI just like in AutoCAD (don’t go to the Transfer tab, stay on the Customize tab).
  7. Load in the CUI file you saved in AutoCAD
    Open Partial CUI File

    Open Partial CUI File

     

  8. In the just loaded CUI file, drag the Geolocation ribbon tab to the Geo Coordinate System Assigned Contextual Tab State.
    Contextual State

    Contextual State

     

  9. Save and your off and running.

Now, when you assign a coordinate system to your drawing, you can also display aerial maps or road maps in the drawing as well.

Map Display Options

Map Display Options

Follow

Get every new post delivered to your Inbox.

Join 808 other followers