User Manual - Page 3247

For AUTOCAD 2011.

Loading ...
Loading ...
Loading ...
Implementing Specific Offset Rules
Common to all rules is a public abstract Apply method, where the return type
and arguments are specific to the rule type, which needs to be implemented
by each new rule class. The following sections describe the base class of each
rule type, and show one example for an implementation of such a rule.
Space Rule (SpaceOffsetRulesManager.AecSpaceRule Base
Class)
A space rule is applied to the whole space, as opposed to all other rule types
which are more specific. Space rules are the only type of offset rules that can
only be registered once for each standard (once for each of the offset types
net, usable, and gross.)
Implementing a Space Rule
To implement a space rule, you must add a new class that is derived from the
SpaceOffsetRulesManager.AecSpaceRule base class. The new class must implement
the Apply interface of the base class. It need not call the
AecSpaceOffsetRuleBase.RegisterType() method of the base class since it always
applies to space objects. The Apply method that each rule needs to implement
has the following syntax for the AecSpaceRule class:
public abstract bool Apply(Autodesk.AutoCAD.DatabaseServices.Ob
jectId idSpace);)
Implementing Offset Rules | 3191
Loading ...
Loading ...
Loading ...