User Manual - Page 3241

For AUTOCAD 2011.

Loading ...
Loading ...
Loading ...
{
}
}
}
Implementing the standard interfaces
5 When the new class is set up correctly in your source file, you can
start implementing some of the methods that the base class
AecSpaceOffsetStandard exposes and that AutoCAD Architecture
will call into.
Adding a call to the AecSpaceOffsetStandard.SetName(string name) method
6 The AecSpaceOffsetStandard.SetName() method is implemented in
the base class and cannot be overridden. It needs to be called to
register a name for the standard in the constructor of the class.
This is the name that will show up in the list of available area
calculation standards in AutoCAD Architecture. For more
information, see Specifying an Area Calculation Standard for a
Drawing on page 2974.
Add the call to the SetName() method in the constructor of your
class.
The following example shows the call for the sample project
AecSpaceOffsetStandardSample which registers itself in the software
as the Basic area calculation standard.
public class AecSpaceOffsetStandardSample : AecSpaceOff
setStandard
{
public AecSpaceOffsetStandardSample ()
{
SetName("Basic");
}
}
Implementing an Area Calculation Standard | 3185
Loading ...
Loading ...
Loading ...