Loading ...
Loading ...
Loading ...
sets, which the derived class can add new rule instances to. These
containers can be referenced with the following methods:
â– AecSpaceOffsetStandard.NetRules()
â– AecSpaceOffsetStandard.UsableRules()
â– AecSpaceOffsetStandard.GrossRules()
For information about implementing the individual rules in a
standard, see Implementing Offset Rules on page 3189.
Each of these calls will return a reference to an object of the
Autodesk.Aec.SpaceOffsetRulesManager.AecSpaceOffsetRuleCollection
class, which exposes functions to register the different rule types.
These objects are maintained and used by AutoCAD Architecture.
The following example shows how to register rules with the 3
different offset types:
public class AecSpaceOffsetStandardSample : AecSpaceOff
setStandard
{
public AecSpaceOffsetStandardSample ()
{
SetName("Basic");
}
protected override void InitRules()
{
// Register the rules with this standard, so the
// offset calculation algorithm can call them
// for the according boundary type
NetRules().AppendBoundingOpeningRule(new BoundingOpen
ingRuleNet());
// no usable boundary
UsableRules().SetSpaceRule(new NullSpace());
GrossRules().AppendBoundingObjectRule(new BoundingOb
jectRuleGross());
GrossRules().AppendBoundingAdjacencyRule(new
BoundingAdjacencyRuleGross());
}
}
Implementing the AecSpaceOffsetStandard.InitCurrentDatabase() method
(Optional)
9 AecSpaceOffsetStandard provides another virtual method that your
own standard can implement:
Implementing an Area Calculation Standard | 3187
Loading ...
Loading ...
Loading ...