You can access and share subassemblies using tool palettes, the AutoCAD Civil 3D Corridor Modeling catalogs, or package files.
For example, you can create custom subassemblies in your drawing, and then drag and drop them onto a tool palette or catalog. You can create a tool palette or catalog that contains multiple custom subassemblies and then share that tool palette or catalog with others.
Custom subassemblies that have been created using .NET or VBA can be exported and imported using a package file. Subassemblies created from polylines cannot be included in a package file.
A package file contains all the files necessary for the custom subassemblies to work. Once the package file is created, users can import the package file contents into AutoCAD Civil 3D using the ImportSubassemblies command, and copy the custom subassemblies directly into a tool palette or catalog. You can also share a package file with others. For example, you could attach a package file containing one or more subassemblies to an e-mail, or use other file transfer methods.
For more information on creating package files, see "Exporting Custom Subassemblies Using a Package File" in the Developer's Guide.
For information on adding subassemblies to tool palettes, see Tool Palettes.
To copy (import) subassemblies from a package file to a tool palette
- To display the Tool Palettes window:
Click Home tab
Palettes panel
.At the Command prompt, enter toolpalettes. - Open the tool palette that you want to copy the subassemblies into. You may open an existing tool palette or create a new one.
- Click Insert tab
Import panel
Import Subassemblies
.At the Command prompt, enter ImportTools. - On the Import Subassemblies dialog box, click the folder icon to navigate to and select the package file.
- In the Import To section, click Tool Palette, and then select the desired tool palette in the drop-down list.
- Click OK.
The subassemblies contained in the package file are copied to the tool palette. If you chose to copy the subassemblies to a catalog at the same time, the subassemblies are also copied to the My Imported Tools catalog.
To copy (import) subassemblies from a package file to a catalog
- To display the corridor modeling catalogs:
Click View tab
Palettes panel
.At the Command prompt, enter contentbrowser. - Click Insert tab
Import panel
Import Subassemblies
.At the Command prompt, enter ImportTools. - On the Import Subassemblies dialog box, click the folder icon to navigate to and select the package file.
- In the Import To section, click Catalog Library/My Imported Tools.
- Click OK.
The subassemblies contained in the package file are copied to the My Imported Tools catalog.
When you import subassemblies to a catalog using this method (package files), you can only copy the subassemblies to the My Imported Tools catalog. If the My Imported Tools catalog does not exist, one is automatically created. Once the subassemblies are in the My Imported Tools catalog, you can then copy them to other catalogs.
If you chose to copy the subassemblies to a tool palette at the same time, the subassemblies are also copied to the selected tool palette.