CES322263-L Class Handout CES322263L Rick Ellis
CES322263-L Class Handout CES322263L Rick Ellis
Learning Objectives
• Learn how to import, view, edit, and label GIS data in AutoCAD Civil 3D
• Learn how to create a Surface in AutoCAD Civil 3D from GIS contours
• Learn how to create a Pipe Network from GIS Data
• Learn how to use the new ArcGIS Connector to access data from ArcGIS Online
Description
If you’re a Civil 3D user being asked to provide data to your geographic information system
(GIS) department, if you are being asked to use GIS data as background data for your designs,
or if you think GIS is a four-letter word—this class will answer this all-too-common question:
“Why should I care about GIS?” You’ll learn to import GIS data not only as AutoCAD objects,
but also directly as Civil 3D objects, like Surfaces and Pipe Networks that use the existing
database information. We’ll also explore the new ArcGIS Connector to access ArcGIS Online
data in real time. Once that data is in Civil 3D we’ll explore ways to use it with labeling tools and
other display techniques. This popular class has won the award for Best Hands-on Lab at
Autodesk University. Don’t miss your chance to learn how the GIS tools in Civil 3D can make
you more productive by automating common everyday tasks.
Speaker
Rick Ellis is the President of CADapult Software Solutions, Inc., where he provides training and
consulting services to clients around the country, helping them get the most out of their design
software investment. Rick specializes in Autodesk® Civil 3D®, AutoCAD® Map 3D, Autodesk®
InfraWorks™, AutoCAD® Raster Design, and AutoCAD®. He is a member of the Autodesk
Developer Network, and author of several critically acclaimed books on Autodesk Civil 3D, and
AutoCAD Map 3D; including the Practical Guide series. Rick continues to use Autodesk Civil 3D
on projects in a production environment, in addition to teaching classes to organizations both
large and small around the country. This practical background and approach has made him a
sought after instructor by organizations around the world.
[email protected]
@theRickEllis
Page 1
Introduction to GIS in Civil 3D
In addition to all of the tools built into Civil 3D for the civil engineering workflow, the software
also includes many powerful tools for creating, editing, importing, displaying and utilizing a wide
range of GIS and mapping data. For instance, aerial and satellite imagery can be displayed,
geometric data that includes corresponding tabular data can be attached to existing AutoCAD
objects, such as lines representing pipes and polygons representing tax lots. Geometry with
corresponding tabular data can also be attached to, or displayed in Civil 3D drawing files, from a
variety of GIS sources, such as ESRI Shapefiles and Autodesk SDF.
Many of these additional tools can be used alone, or in various combinations, and are not
necessarily limited to GIS and mapping projects, or even civil design projects. Unlike most Civil
3D workflow processes, these tasks are typically not linear. For instance, for any given project
you may use different combinations of these tools or processes, in different sequences.
Autodesk Civil 3D is built on top of AutoCAD Map 3D, which is built on top of standard
AutoCAD. Using the many tools found in Civil 3D, you can work with three types of objects:
standard AutoCAD objects, (such as lines, arcs, circles, polylines and blocks); Map 3D objects,
(such as Object Data, Topologies and connected Features); and Civil 3D objects, (such as
alignments, profiles, parcels, surfaces, and pipe networks); and. These objects that are unique
to the Map 3D tools in Civil 3D will be explained in the Lessons and exercises to follow.
I would encourage you to think of this as a toolbox that contains many related, yet separate
tools. Each tool has its own function and purpose. As you learn and become proficient with
these tools you become a skilled craftsman knowing what tool is best suited for each task you
encounter during your project. I would encourage you not to limit yourself to simply the
examples demonstrated here. Focus instead on the individual tools. There are many different
applications for them and once you understand how to use these tools, not just blindly follow a
series of predefined steps, then you will truly unlock the power and productivity that is available
to you.
Page 2
Using GIS Data from other Formats
There are three ways that you can bring GIS data into Civil 3D:
The ability to utilize data from other GIS programs inside of Civil 3D provides tremendous capabilities.
Being able to use this data effectively requires a few simple steps. When requesting GIS data, be sure to
get the information about the accuracy of the data and how it was created. This includes the coordinate
system used, the definitions of the data fields, and the accuracy of the geometry.
Autodesk SDF
GML
MapInfo MIF/MID
MapInfo TAB
Page 3
Step-by-Step
1. Start a new drawing using the ACAD.dwt template.
2. Click the Workspace button on the status bar and set the current workspace to
Planning and Analysis.
Page 4
In the Import dialog box you can configure the Layer, Coordinate Conversion, and Data options that you
wish to use to Import each of these two Shapefiles into Civil 3D.
8. Click on the Drawing Layer field in the Parcels row to activate the more <<…>> button.
Click this button to bring up the Layer Mapping dialog box.
Here you can choose to import the drawing objects onto an existing
layer, create a new layer, or select a column of data from the file
that you are importing to determine the layer names. This last
option will allow you to do some basic thematic mapping during the
import of the objects. For example, if you were importing parcel
data and that data set had a column for zoning, you could have the
import command create a new layer for each zoning type and place
each parcel on the appropriate layer for its zoning designation.
However, in this exercise you will simply import all of the parcels
onto one layer.
Page 5
12. Back in the Import dialog box, click on the Data field in the Parcels row to activate the more
<<…>> button.
13. Click the more <<…>> button to bring up the Attribute Data dialog box.
15. Enter Parcels for the name of the Object Data table to use.
Page 6
This will create a new Object Data Table in the drawing to store the parcel attribute data. You can name
this Object Data Table anything you like, but it is recommended to keep the name simple and descriptive
to avoid confusion. The name must be in alphanumeric characters with a maximum length of 25
characters. The name cannot contain spaces or symbols.
17. Click on the Data field in the Streets row to activate the more <<…>> button. Click this
button to bring up the Attribute Data dialog box.
Page 7
18. Choose Create object data.
This will allow you to select only the attribute data you
wish to import rather than the entire database.
Page 8
The completed dialog box should look like the one below. If you have assigned a coordinate system to
the drawing it will display at the top of the Import dialog box. You can also assign a coordinate system to
the drawing at this time by selecting the Assign Global Coordinate System button. If a coordinate system
has been assigned to the drawing the Input Coordinate System column will be activated. This allows you
to assign a coordinate system to the files that you are importing. If the input coordinate system is
different than the current drawing coordinate system the geometry will be converted to the current
drawing coordinate system as it is imported.
Page 9
Controlling the Display of Polygons
Notice that the polygons are all displayed with a solid hatch fill. This display option is a feature of the
MPOLYGON object. To display just the edges of the polygons you need to set the polygon display mode.
4. Change the color of the layer EX-Parcels to Yellow and the later EX-Streets to Red.
Page 10
Viewing GIS Attributes in AutoCAD
When talking about GIS data the term attributes refers to any type of attached data, not just block
attributes as in AutoCAD terminology. In AutoCAD Map 3D, attribute data can be object data, external
database data, or block attributes. Civil 3D is built on and includes AutoCAD Map 3D which enables you
to view and edit this attribute data, including attributes imported from GIS files, as well as attributes
created as object data in Map 3D. To view the attributes imported above follow these steps.
1. Pick one of the new parcels, then right-click and select ⇒ Properties.
You can view and edit any of the object data here as needed.
Page 11
Labeling Objects with an Annotation Template
Several types of data can be used to drive an Annotation Template. These include:
• Object Data
• Linked data sources
• Object properties
Any of the preceding data types and any combination of these can be used within a single Annotation
Template, retrieving data from multiple sources of data into a single, or multiple lines of text to form part of
the resulting label in the drawing.
Annotation Templates are blocks with attribute tags that generate the resulting text in the drawing. All
annotation blocks are prefixed with ACMAP_ANN_TEMPLATE followed by the name of the annotation
template.
Define Annotation
Insert Annotation Update or Refresh
Template
Page 12
Step-by-Step
Creating an Annotation Template
If you didn’t finish the previous exercise you can open the drawing Annotation.dwg.
5. Name the annotation template Parcel Number, and then click <<OK>>.
The AutoCAD Block Editor opens and the Ribbon now displays the Block Editor tab.
7. When prompted to select annotation, press Enter to create new annotation and open the
Annotation Text dialog box.
Page 13
10. Expand the Object Data table Parcels.
15. At the command line prompt Specify left point of text: enter 0,0 and press Enter.
The block is created at the origin, 0,0. You may need to zoom in to see it.
Page 14
17. When prompted, save the changes to ACMAP_ANN_TEMPLATE_Parcel.
18. Click <<OK>> in the Define Annotation Template dialog box to save the template.
Annotating Objects
3. Click <<Insert>>.
4. Zoom in and pick several parcels, then Enter to add the labels.
Page 15
Importing GIS Data as Civil 3D Objects
There are two types of Civil 3D objects that can be created directly from GIS data.
• Surfaces
• Pipe Networks
Step-by-Step
1. Start a new drawing from the template _Autodesk Civil 3D (Imperial) NCS.dwt
2. Click the Workspace button on the status bar and set the current workspace to
Civil 3D.
3. Start a new drawing from your template that contains Civil 3D styles.
Page 16
5. Enter the Name and select the desired Style.
6. Click <<Next>>.
Page 17
7. Set the Data source type to SHP.
9. Click <<Login>>.
Page 18
10. Enable the check box beside the desired Feature class.
Page 19
You have the option to define an area of interest if you want to limit the size of the data brought in to
the drawing.
Page 20
14. Set the Civil 3D Property for the GIS Field ELEV to the elevation data field in the source
file.
You will get a warning in the Event Viewer if there are crossing breaklines in the data you are importing.
If so, that point will be ignored and your surface should be fine. You can zoom in and examine that
location if you want to explore it further.
Page 21
Creating a Pipe Network from a SHP
The pipes and structures will be contained in separate SHP files. By connecting to a folder rather than a
specific file, then all of the SHP files in that folder will be available.
5. Browse to the folder containing the SHP files, and click <<Open>>.
6. Click <<Connect>> to connect to the folder, making all of the SHP files in that folder
available.
Page 22
8. Name the new Pipe Network.
Page 23
On the Schema and Coordinates panel of the wizard you will see all the SHP files in the connected folder
along with the coordinate systems they were created in.
Page 24
15. Set the Imported pipe feature class to Default:Pipes (the SHP file containing the Pipe
data).
Page 25
18. Set the Start Structure to StructStart.
You may need to scroll through the list of Civil 3D pipe properties to the Geometry section.
You may need to scroll down the list of Civil 3D pipe properties to the Part Data section.
Page 26
24. Confirm the Imported structure feature class is set to Default:Structures (the SHP file
containing the Structure data).
Page 27
27. Set the Rim Elevation to RimElev.
31. Back on the Data Mapping: Structures panel of the wizard click <<Next>> again.
Page 28
32. Confirm that Import all GIS data is selected.
If you are importing SHP files that encompass a large area you can be selective about how much of the
data is imported here.
Page 29
34. Enable the option to Snap pipe and structure tolerance.
The pipes and structures are now imported and labeled, creating a new Pipe Network.
The Event Viewer opens to announce that the Pipe Network has been created.
You may notice the Invert In and Invert Out elevations are backwards on each of the structures with the
Invert In lower than the Invert Out. Next, you will reverse the pipe network to correct this issue.
Page 30
40. Expand the Ribbon: Pipe
Networks tab Modify
panel.
44. The entire network should now be highlighted. Enter to end the command and reverse the
flow direction of the network.
You will need an Esri account to use this tool, and to complete this lesson. If you do not have an account
check with your organization to see if they have an account to which you can be added as a user. You
can also create an individual account and use their free trial period to access publicly available content,
and to complete this lesson.
Page 31
1. Open the drawing ArcGIS Connector.dwg from the dataset.
This drawing contains linework for the parcels and streets. It also has a coordinate system assigned to it.
3. Click <<Connect>>.
Page 32
4. Enter your Username and Password.
6. In the Search by location field, enter “Springfield, OR, USA”, and click the search tool
Page 33
This zooms the base map to the general area of interest.
7. Zoom in and out using the wheel on your mouse and Pan by holding down the left mouse
button.
11. Enter “City of Springfield” in the search field, and press <<Enter>>.
Page 34
Publicly available Maps matching these criteria (AOI and search terms) are displayed.
Page 35
14. Click the Layer tool .
The list of feature layers in this map are displayed. In this example it is just the one layer with the
benchmark points.
15. Set the Feature Type for the layer to COGO Points.
Civil 3D Points representing the benchmarks are now created in the drawing.
Page 36
Connecting to GIS Data
Autodesk Civil 3D includes the option to use FDO (Feature Data Objects), a technology that allows you to
connect directly to GIS data, rather than import it, as we did in the example earlier. The process of
connecting to GIS data is very different from importing it, and the resulting information that is created in
your drawing is also different. For example, when you import GIS linear data, basic AutoCAD objects, like
polylines, are created. When you connect to data, Features are created.
Step-by-Step
1. Start a new drawing from the template ACAD.dwt.
2. Click the Workspace button on the status bar and set the current workspace to
Planning and Analysis.
Page 37
4. From the Data Connections by Provider list, select Add SHP Connection.
8. Click <<Connect>>.
Page 38
Notice a new layer appears in the Display Manager and the Features appear in the drawing editor. Notice
that all features are the same color. Next we will explore some basic display options with connected data.
10. In the Task Pane set to Display Manager, right-click the desired layer and select Edit Style.
The Style Editor opens, where you can modify a geospatial data layer’s style properties. Rules can also
be set up to display the layer based on certain data conditions, zoom/scale values, etc..
This opens the Theme Polygons dialog box, where you create a theme, such as applying a different color
value to each range of land values, resulting in a thematic map.
Page 39
12. Set the Property to ZONING.
• Thematic Mapping
• Map Books
Page 40