The Autodesk® AutoCAD® Civil 3D® program is unique in that, with a few exceptions, the data you create is stored in the DWG file. Using data shortcuts will allow you to divide the work among your co-workers and keep your drawing size down. Using data shortcuts will also enable you to keep your existing surface in your topographic survey file and reference it into your design files.
In this chapter you will also look at LandXML as a tool to share data. Using this file format, you can transfer “intelligent” data without a DWG file.
In this chapter, you will learn to:
A data shortcut is a link between drawings that allows specific types of Civil 3D data to be shared. The shortcut itself does not contain data, but it is a pointer, directing Civil 3D to read information from a common pool of data. A data shortcut is created in the source drawing, and a data reference is the manifestation of the data in a recipient drawing.
There are many situations in which you need data or information to link between drawings. Connections between drawings can be in the form of external references (XRefs), data references, or a combination of the two. These two options are similar but not the same. Table 16.1 compares them.
Table 16.1 XRef vs. data reference
External reference (XRef) | Data reference |
For most objects, an XRef is a graphic-only representation of objects created in another drawing. | A data reference is an information/graphic-only link to Civil 3D data created in another DWG file. |
Any objects (base AutoCAD or Civil 3D) can be displayed in XRefs. | Only specific types of Civil 3D data can be used as data references. |
Visibility of objects is controlled by original drawing styles and layers. | Visibility of data is controlled by host drawing styles and layers. |
With the exception of Catchment and Intersection objects, you can use the Civil 3D Add Labels commands on items in an XRef. All other objects (e.g., Surfaces, Alignments, Pipes, Profile Views, etc.) can be labeled through an XRef. | To use Civil 3D object data in design (i.e., using a surface to create an existing ground profile or using an alignment as a corridor baseline), the object must be data referenced. |
A drawing containing a Civil 3D corridor can be XRef'ed into a host drawing. Sample lines can pull corridor data from the XRef. | A data reference to an alignment in conjunction with an XRef to the corridor enables sample lines to be created in a separate drawing. |
A feature introduced in Civil 3D 2014 brought another important exception to the general rule that external references are “graphics only.” Users now have the ability to use figures, lines, polylines, and feature lines as corridor targets through an external reference.
As noted, only Civil 3D objects can be used with data shortcuts. Not all object types are available through shortcuts. The following objects are available for use through data shortcuts:
When you first create a data shortcut project, you have the option of using a project template. A project template is simply a set of folders, subfolders, and files created to help you keep your file store organized.
In the following exercise, you will create folders for use when creating a data shortcut project:
C:\Civil 3D Project Templates
.MasteringCivil3D
.MasteringCivil3D
, create subfolders called Design
, Documents
, Sheets
, and Survey
, as shown in Figure 16.1.
Figure 16.1 Folder structure and standard project files should be included in the project template.
1601_Project Checklist.doc
from this chapter's files that you downloaded from www.sybex.com/go/masteringcivil3d2016
.Documents
folder you created in step 3.1601_SheetSetTemplate.dst
from within this chapter's files.Sheets
folder you created in step 3.This directory structure will appear when a data shortcut project is created. A
folder is included as an example of other folders not related to Civil 3D that you might need in your project. The Documents
and 1601_Project Checklist.docx
files will be copied automatically to each project you create from this template.1601_SheetSetTemplate.dst
A completed version of this set of folders is in the dataset for your reference and is called
.1601_MasteringC3D_FINISHED
You can think of the working folder as a project drive. The working folder can contain a number of projects, each with a data shortcut folder where the shortcut files reside.
In this exercise, you'll set the working folder and create a new project:
You won't save this file, but you do need to have a file open to see the Prospector tab of Toolspace. You need to complete the previous exercise before beginning this one.
Figure 16.2 Creating a new working folder.
Mastering
folder you created for your course files.Mastering
folder highlighted (as shown in Figure 16.2), click OK.Figure 16.3 Creating a new shortcut folder.
MasteringCivil3D2016
folder from the list, as shown in Figure 16.3, and click OK to dismiss the dialog.
Notice that the Data Shortcuts branch in Prospector now reflects the path of the project you just created, as shown in Figure 16.4.
Figure 16.4 The Data Shortcuts area listed in Prospector.
If you open Windows Explorer and navigate to
, you'll see the folders from the MasteringCivil3D project template plus a special folder named C:\Mastering\_North River Crossing
, as shown in Figure 16.5. This folder is created for the data shortcut XML files. When a data shortcut is defined, an XML file containing the path, drawing name, and originating object name is placed in this folder._Shortcuts
Figure 16.5 Your new project shown in Windows Explorer.
is the working folder; Mastering
is the data shortcut folder._North River Crossing
In business, your working folder and data shortcuts folder should be on a network drive. If you have an established workflow for creating project folders and don't really need to use the Civil 3D project template, you can do the following:
_Shortcuts
in your preferred location in your project folder structure.
This folder must be at least two levels deep in your directory structure.
_Shortcuts
folder.Figure 16.6 Select the folder that contains your manually created
folder in the Set Data Shortcut Folder dialog._Shortcuts
This dialog will display only folders that contain a
subfolder._Shortcuts
With a shortcut folder in place, it's time to use it. In this exercise, you'll publish data shortcuts for the alignments and layout profiles in your project:
1602_ExistingSurface.dwg
(1602_ExistingSurface_METRIC.dwg
) file, which you can download from this book's web page.
This drawing contains points and an existing ground surface. You need to have completed the previous exercise before continuing.
C:\Mastering\_North River Crossing\Survey
.
Because the drawing was previously associated to another project, you are presented with a Create Data Shortcuts – Current Project dialog notifying you of this. To continue, you must associate this drawing to the _North River Crossing project.
Figure 16.7 Adding surface data to data shortcuts.
1602_Alignments-Profiles.dwg
(1602_Alignments-Profiles_METRIC.dwg
) file from your class data.
This file contains five alignments that you will add to the data shortcut project.
C:\Mastering\_North River Crossing\Design
.Figure 16.8 Adding alignment data to the pool of data shortcuts.
You should now have surfaces and alignments available for use in the data shortcuts list in Prospector, as shown in Figure 16.9. Notice in Figure 16.9 how highlighting the data shortcut in the list reveals the source location at the bottom of Toolspace.
Figure 16.9 List of Civil 3D data shortcuts available to the current project.
Keep
(1602_Alignments-Profiles.dwg
) open for the next exercise.1602_Alignments-Profiles_METRIC.dwg
Now that you've created the shortcut files to act as pointers back to the original drawing, you'll use them in other drawings. In this section, you will create and use data references.
Data references are made using the Data Shortcuts branch within Prospector. In this exercise, you'll create a reference to the surface you previously shared to the project.
You need to have completed the previous exercises to continue.
1602_Alignments-Profiles.dwg
(1602_Alignments-Profiles_METRIC.dwg
).Figure 16.10 The Create Surface Reference dialog.
You should now see the surface in the drawing. At first glance, it does not look different from other surfaces you've worked with within Civil 3D. If you examine the Surfaces branch of Prospector, however, you'll see that there is no Definition collection (as shown in Figure 16.11). You cannot edit a surface or any other object that is data referenced. If a change needs to be made to Existing Surface, you would need to open the drawing file where it was originally created.
Figure 16.11 You can see and use the surface, but you cannot add to or edit the surface definition.
Any changes to the surface will be communicated through the data shortcut to the drawings where it is referenced. If the drawing is open when a data-referenced source file has been changed, a bubble message will pop up to inform the user that the item must be synchronized to view the most up-to-date information. If a recipient drawing is closed at the time the change takes place, all data references will automatically be synchronized as the file opens.
In the next part of the exercise, you will use the skills you learned in Chapter 7, “Profiles and Profile Views,” to create an existing ground profile and a design profile. After you have all the information, you will use skills from Chapter 9, “Basic Corridors,” to put the information together. You need to have completed the previous exercises to continue.
1602_Alignments-Profiles.dwg
(1602_Alignments-Profiles_METRIC.dwg
).Figure 16.12 Profile data Imperial (left) and Metric (right).
You can close the Profile Layout Tools toolbar when finished.
Figure 16.13 Adding additional drawing data to the data shortcut project.
The alignments that you added earlier are listed but are grayed out. Once you add an item to the Data Shortcut list, you do not need to add it again. Only new data will be added to the list of data shortcuts. Shown in gray will be the list of items that are already published as data shortcuts. If you find the list of already published items distracting, you can hide all of the published items by clicking the Hide Already Published Objects check box at the bottom of the dialog.
1602_Alignments-Profiles.dwg
(1602_Alignments-Profiles_METRIC.dwg
).1603_Corridor.dwg
(1603_Corridor_Metric.dwg
).C:\Mastering\_North River Crossing\Design
.Figure 16.14 Creating a data reference to a profile will automatically create a data reference for its alignment.
If you zoom extents in the drawing, you should see the alignment and existing surface.
The profile data is referenced but is not currently visible. If you wanted to, you could create a profile view. However, you do not need the profile to be visible to create a corridor.
When you need to make a change, you can use the tools in the Data Shortcut menu to jump back to that file, make the changes, and refresh the reference.
1604_Sections.dwg
.
Ideally, you saved it to
.C:\Mastering\_North River Crossing\Sheets
1603_Corridor.dwg
.Figure 16.15 Open Source Drawing is a fast way to jump to the drawing you want.
At this point, you should have three drawings open (
, 1602_ExistingSurface
, and 1603_Corridor
; or, 1604_Sections
, 1602_ExistingSurface_METRIC
, and 1603_Corridor_METRIC
if metric). You can use the tabs across the top of the screen to switch drawings. You can also use the Quick View Drawings button at the bottom of the AutoCAD window to switch between open drawings.1604_Sections_METRIC
The
(1602_ExistingSurface.dwg
file should be active and ready to make updates. Remember that the surface is read-only in all other project files; this is the only drawing in which changes can be made to the surface.1602_ExistingSurface_METRIC.dwg)
In this drawing, you will add polyline contours to the surface definition. The change to the surface will affect all drawings where the surface is used as a data reference. The dynamic communication between drawings shows the power of the Data Shortcut tool.
1602_ExistingSurface.dwg
(or 1602_ExistingSurface_METRIC.dwg
).1603_Corridor.dwg
(1603_Corridor_METRIC.dwg
) is the active drawing.
Shortly after bringing this drawing to the forefront, you should see an alert symbol appear on the external reference icon on the status bar indicating that data shortcut definitions may have changed, as shown in Figure 16.16.
Figure 16.16 Civil 3D will send the user a message when a data-referenced object has changed.
In some situations, you see a warning symbol in the Prospector. In that case, you can always synchronize directly from the right-click menu of the referenced object, as shown in Figure 16.17.
Figure 16.17 Synchronizing from the object's right-click menu.
You may receive a message in Panorama indicating that the item was synchronized.
The surface that changed is used as a target in the corridor; therefore, the corridor needs to be rebuilt.
1603_Corridor.dwg
(1603_Corridor_METRIC.dwg
).1604_Sections.dwg
if it is not already current.This time, you will receive a message that your external reference file has changed, as shown in Figure 16.18. If you accidentally dismiss this message without updating, a warning symbol will remain in the tray area at the bottom of your screen. You can always right-click to reload the reference from this icon.
Figure 16.18 Reload the external reference to ensure your cross sections reflect the design update.
Your sections should now reflect all the design changes. If you receive a message regarding unreconciled layers, click the X to dismiss it.
You can find a completed version of the project folder with updates with this chapter's dataset. The folder is called
._North River Crossing
A broken reference is fairly easy to fix, but you will not be able to continue working in your design until broken references are resolved.
Actions that will cause broken references include the following:
In the following exercise, you will associate drawings that have been renamed to a project that has been renamed and fix the broken data references that you find. You do not need to have completed the previous exercises to continue.
_Broken Reference
.
This is part of the download for this chapter at the book's web page.
C:\Mastering
.1605_Corridors.dwg
file, located in C:\Mastering\_Broken Reference\Design
.
This file contains a number of references pointing to files that have been renamed. Panorama may appear with the messages regarding the problems that it found.
C:\Mastering
. Even if this is already the current working folder, the data shortcuts list will update by selecting the folder again._Broken Reference
.Because the Shortcuts project folder was renamed, the shortcuts in the project need repairing.
1605_ExistingSurface.dwg
file in the C:\Mastering\_Broken Reference\Survey
folder and click Open.1605_Alignments-Profiles.dwg
file in the C:\Mastering\_Broken Reference\Design
folder and click Open.Figure 16.19 Choosing Repair Broken References.
After fixing the first broken reference, if more broken references exist, you will be prompted to fix them in the Additional Broken References dialog, shown in Figure 16.20.
Figure 16.20 The Additional Broken References message.
The ability to repair broken links helps make file management a bit easier, but there will be times when you need to completely change the path of a shortcut to point to the correct file. To do so, you must use the Data Shortcuts Editor.
A Civil 3D drawing stores links to the information it uses in its database. The Data Shortcuts Editor is used to update or change the file to which a shortcut points. You may want to do this when preparing a deliverable.
In the following exercise, you'll copy the current chapter project to another folder and update the data shortcut paths with the Data Shortcuts Editor (the procedure is the same for both metric and Imperial units):
_Deliverable
.
This is part of the download for this chapter at the book's web page.
C:\Mastering
, as shown in Figure 16.21.
Figure 16.21 Simulating a new project phase by copying the example project to a new folder.
Next, you will open the Data Shortcuts Editor to correct the file paths in the _
version.Deliverable
C:\Mastering
and, with the _Deliverable
folder highlighted, click OK.
Your Data Shortcuts Editor should resemble Figure 16.22.
Figure 16.22 Inside the Data Shortcuts Editor.
Several things need to be changed before the new phase of the project can begin. Some of the data references are looking for the incorrect file.
Notice that the Path column of the table still refers to the old path. To make a clean break from the old project to move forward into the
version, you need to change all these.Submitted
Unfortunately, there is no browse option here, but you can use the basic Windows Copy and Paste tools to make this a little easier.
\Survey
from the Find field and then copy the path to the clipboard._Another Project
with _Deliverable
, as shown in Figure 16.23.
Figure 16.23 Updating the paths to the new project.
Your data shortcut paths are now correct (as shown in Figure 16.24) and ready for more action. Click Cancel to close the Find And Replace tool.
Figure 16.24 Updated paths.
Not everybody uses Civil 3D 2016, so you need to know how to convert your drawing files and extract your design data for those people who are using previous versions of AutoCAD or different land development software.
Files created in Civil 3D 2016 are backward compatible to Civil 3D 2014. Currently, these are the only two versions that will work together without losing significant amounts of data. Even though Civil 3D 2014 was said to be backward compatible with Civil 3D 2013, it is not advisable to use them together.
The Save As command can be misleading for Civil 3D users. Keep in mind that the Save As command works only on AutoCAD objects such as lines, arcs, and circles—not Civil 3D objects. To save to a version of Civil 3D 2012 or prior, you will need to use the Application menu Export
Export Civil 3D Drawing. This is a new command in Civil 3D 2016. The result will be exploded Civil 3D objects.
In the following exercise, you will export a Civil 3D 2016 corridor model to an AutoCAD 2010 file format:
C:\Mastering\_North River Crossing\Design\1603_Corridor.DWG
.
For this exercise, you need to have completed the
data shortcut project earlier in the chapter._Deliverable
Note the settings for the treatment of external references.
_Deliverable
folder._Deliverable
folder.The Export AutoCAD Civil 3D Drawing dialog should look like Figure 16.25.
Figure 16.25 Export AutoCAD Civil 3D Drawing dialog, a new feature in Civil 3D 2016.
The export may take a few minutes.
C:\Mastering\_Deliverable\2010 DWG Files\survey\ACAD-1602_ExistingSurface-Model.dwg
(ACAD-1602_ExistingSurface_METRIC.dwg
if metric).
As the file opens, the command line will echo
.Opening An AutoCAD 2010/LT 2010 Format File
This export command will explode all objects to AutoCAD entities. The contour is now a polyline and has taken on the layer assigned to it through the style once assigned to it. It also forces color, linestyle, lineweight, and any properties overrides in the styles to the resulting entities.
Compare the content of your
folder with the contents of the 2010 DWG Files
folder, which can be downloaded from the book's website.2010 DWG Files_FINISHED
LandXML is not specific to Civil 3D. It is a file format that allows users to share data in a nonproprietary format. You can use LandXML to archive projects and to send information to non–Civil 3D users or users of Civil 3D using 2012 or earlier.
A drop-down in the Import LandXML dialog lets you select the version of LandXML. This is a result of that consortium. The latest, as of this writing, is the 1.2 schema. Most CAD programs have methods of importing and exporting LandXML files, and this is one way to tackle that barrier.
Alas, the need to send data to older versions of Civil 3D is not always avoidable. In the following exercise, you will step through an example of what needs to happen to force Civil 3D to previous versions:
1606_LandXML-OUT.dwg
(1606_LandXML-OUT_METRIC.dwg
), which can be found at this book's web page.The Export To LandXML dialog, shown in Figure 16.26, opens.
Figure 16.26 The Export To LandXML dialog.
You now have as much Civil 3D as possible packed up into the LandXML file. This file contains the following:
If you are ever sent a LandXML file, you will need to import the contents into a file created from your Civil 3D template.
Figure 16.27 shows the Import LandXML dialog.
Figure 16.27 Importing LandXML data.
At this point you could change styles and apply label styles to certain objects.
You can find completed versions of the resulting file after LandXML import with this book's dataset. Compare your work with
or 1606_LandXML-IN_FINISHED.dwg
.1606_LandXML-IN_METRIC_FINISHED.dwg
MasterIt1601.dwg
(MasterIt1601_METRIC.dwg
) drawing, create a new data shortcut folder called MasterIt
. Use the _Sample Project
project template.Source Drawings
folder in the Master Data Shortcuts project you created in the previous exercise. Create data shortcuts to all the available data in the MasterIt1601.dwg
(MasterIt1601_METRIC.dwg
) file.MasterIt1601.dwg
(MasterIt1601_METRIC.dwg
), export the Civil 3D file so it can be used by a user working in base AutoCAD 2010.MasterIt1601.dwg
(MasterIt1601_METRIC.dwg
), create a LandXML file with all of the exportable information.