User Manual - Page 3239

For AUTOCAD 2011.

Loading ...
Loading ...
Loading ...
Referencing the AutoCAD Architecture and AutoCAD .NET API
9 Add references to the following assemblies of your installation:
â–  acdbmgd.dll (AutoCAD .NET API)
â–  aecbasemgd.dll (AutoCAD Architecture base classes)
â–  aecarchmgd.dll (AutoCAD Architecture objects)
These DLLs are found in the same folder as the
AecSpaceOffsetRuleManager.dll assembly.
10 Right-click each reference in the Solution Explorer tree under
References, and click Properties to verify that the Copy Local
reference property is set to False for each of the references.
Setting up copying the .dll so that AutoCAD Architecture can reference it
AutoCAD Architecture searches for custom area calculation standard assemblies
in C:\Program Files\AutoCAD Architecture 2011\Space Calculation Standards, or the
path you chose during installation (see Usage of a New Standard on page 3206).
Each time you compile the .dll you need to restart AutoCAD Architecture in
order to load and test it. Do the following to set up copying the .dll to the
appropriate folder each time it is compiled:
11 Select the project in the Solution Explorer.
12 Right-click, and click Properties.
13 Click the Build Events tab.
14 On the Post-build event command line, enter the following:
@if exist $(TargetPath) @copy $(TargetPath) "C:\Program
Files\AutoCAD Architecture 2011\Space Calculation Stand
ards\"
@if exist $(TargetDir)$(TargetName).pdb @copy $(Target
Dir)$(TargetName).pdb "C:\Program Files\AutoCAD Architec
ture 2011\Space Calculation Standards\"
Creating a Space Standard Class
You must define a new class derived from AecSpaceOffsetStandard. This class
will be the framework that manages the individual rules and the entry point
that AutoCAD Architecture calls into when loading and applying the standard.
Implementing an Area Calculation Standard | 3183
Loading ...
Loading ...
Loading ...