Sample Program

CorridorSample.dvb

<installation-directory>\Sample\Civil 3D API\Vba\Corridor\CorridorSample.dvb

The CreateCorridorExample subroutine demonstrates the creation of a simple corridor using the AeccCorridors.Add method. Before calling this subroutine, be sure the current document contains at least one assembly. A suitable drawing is the file Corridor-2b.dwg located in the <installation-directory>\Help\Civil 3D Tutorials\Drawings directory.

The GetCorridorInformationExample subroutine extracts information of all existing corridors, baselines, feature lines, surfaces, assemblies, and subassemblies within the current document and displays the data in an instance of Word. A suitable drawing is the file Corridor-4b.dwg located in the <installation-directory>\Help\Civil Tutorials\Drawings directory.

Note:

Microsoft Word must be running before starting this program.