April 2014


As I’m sure most of my readers are aware, with the 2013 release, the ability to import images from Google Earth was not included. The fine folks at Autodesk have been working on getting us a replacement and this is it (at least for imaging). When you are in a drawing that is georeferenced (the tutorial file “Intro-1.dwg” works if you want to test it out) all you have to do is turn on the image.

In the drawing (with the assigned coordinate system), simply go to the Geolocation tab on the ribbon and choose the Online Map type you want.

Map Type

Map Type

You’ll need to log in to your Autodesk account (if you don’t have one, they’re free) and agree to the terms, etc. etc. Once you’ve done this, your image just shows up (provided you have a decent internet connection). Nothing too new here, we’ve been able to do this for a while (see my other posts HERE and HERE).

So, what’s new in 2015, THEY PLOT!!!!!

Ok, so there’s another step you have to take before they’ll plot but it’s not difficult, you have to capture an area. Once the imagery has been displayed in your drawing, go back to the Geolocation tab and choose “Capture Area”.

Capture Area

Capture Area

After you have captured the area, a new object type will be created, a GEOMAPIMAGE or “Map Image” as it’s displayed on the ribbon when selected. This object will plot as you can see in this plot preview:

Plot Preview

Plot Preview

Another really cool thing about the GEOMAPIMAGE is, if you edit the image extents, the image will update. Simply select the image frame, adjust a grip, and the image updates. Additionally, if you need a better resolution or less resolution, when you select the image, you’ll have those options on the Ribbon.

Image Options

Image Options

Oh, and by the way, this isn’t really a Civil 3D feature, this is a core AutoCAD feature!

<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!