![Autodesk 00128-051462-9310 - AUTOCAD 2008 COMM UPG FRM 2005 DVD User Manual Download Page 1795](http://html1.mh-extra.com/html/autodesk/00128-051462-9310-autocad-2008-comm-upg-frm-2005-dvd/00128-051462-9310-autocad-2008-comm-upg-frm-2005-dvd_user-manual_30211141795.webp)
public abstract bool Apply(Autodesk.AutoCAD.DatabaseServices.ObjectId idSpace);)
The boolean return value determines if the space has a valid offset boundary. If so, it can be used to deactivate all
boundaries of a certain offset type. The following example shows the framework for a new space rule class:
namespace AecSpaceOffsetStandardBasic
{
public class SpaceRule: AecSpaceRule
{
public SpaceRule()
{
}
public override bool Apply(ObjectId idSpace)
{
//
return false to switch boundary off
}
}
}
Sample Space Rule NullSpace
A common use case is that an area calculation standard includes only net and gross offsets, but no usable offset. You
can accomplish that by implementing a space rule derived from AecSpaceRule that always returns false in the
implementation of the Apply method. Register one instance of that rule with the usable offset in the standards
implementation of AecSpaceOffsetStandard.InitRules().
A more complex space rule might define that all spaces with an area smaller than a certain predefined value do not
contribute to a certain offset type. The following example shows the space rule that is part of the sample project and
that will invalid all spaces. It is used within the sample standard to switch off the usable boundary:
namespace AecSpaceOffsetStandardBasic
{
public class NullSpace: AecSpaceRule
{
public SpaceRuleNet()
{
}
public override bool Apply(ObjectId idSpace)
{
return false;
}
}
}
Reference:AecSpaceRule Class
The following list shows all members of the AecSpaceRule base class:
namespace Autodesk.Aec.SpaceOffsetRulesManager
{
public abstract class AecSpaceRule : AecSpaceOffsetBaseRule
{
public AecSpaceRule();
public abstract bool Apply(
Autodesk.AutoCAD.DatabaseServices.ObjectId idSpace,
Autodesk.Aec.Modeler.Body body);
}
}
Bounding Object Rule (SpaceOffsetRulesManager.AecBoundingObjectRule Base Class)
Bounding object rules allow objects that are bounding the base profile of the space, such as structural members, to be
marked as non-bounding, so that they will not be processed when creating the offset profile. Each standard can define
and apply multiple bounding object rules for each boundary offset type.
Implementation of a Bounding Object Rule
To implement a custom bounding object rule, you need to add a new class that is derived from the
SpaceOffsetRulesManager.AecBoundingObjectRule base class. The new class needs to implement the Apply interface of the
base class and register itself for the object types it should be called for in the constructor by calling the
AecSpaceOffsetRuleBase.RegisterType() base method. The Apply method of this rule type has the following syntax:
Implementing Offset Rules | 1755
Summary of Contents for 00128-051462-9310 - AUTOCAD 2008 COMM UPG FRM 2005 DVD
Page 1: ...AutoCAD Architecture 2008 User s Guide 2007 ...
Page 4: ...1 2 3 4 5 6 7 8 9 10 ...
Page 40: ...xl Contents ...
Page 41: ...Workflow and User Interface 1 1 ...
Page 42: ...2 Chapter 1 Workflow and User Interface ...
Page 146: ...106 Chapter 3 Content Browser ...
Page 164: ...124 Chapter 4 Creating and Saving Drawings ...
Page 370: ...330 Chapter 6 Drawing Management ...
Page 440: ...400 Chapter 8 Drawing Compare ...
Page 528: ...488 Chapter 10 Display System ...
Page 540: ...500 Chapter 11 Style Manager ...
Page 612: ...572 Chapter 13 Content Creation Guidelines ...
Page 613: ...Conceptual Design 2 573 ...
Page 614: ...574 Chapter 14 Conceptual Design ...
Page 678: ...638 Chapter 16 ObjectViewer ...
Page 683: ...Designing with Architectural Objects 3 643 ...
Page 684: ...644 Chapter 18 Designing with Architectural Objects ...
Page 788: ...748 Chapter 18 Walls ...
Page 942: ...902 Chapter 19 Curtain Walls ...
Page 1042: ...1002 Chapter 21 AEC Polygons ...
Page 1052: ...Changing a door width 1012 Chapter 22 Doors ...
Page 1106: ...Changing a window width 1066 Chapter 23 Windows ...
Page 1172: ...1132 Chapter 24 Openings ...
Page 1226: ...Using grips to change the flight width of a spiral stair run 1186 Chapter 25 Stairs ...
Page 1368: ...Using the Angle grip to edit slab slope 1328 Chapter 28 Slabs and Roof Slabs ...
Page 1491: ...Design Utilities 4 1451 ...
Page 1492: ...1452 Chapter 30 Design Utilities ...
Page 1536: ...1496 Chapter 31 Layout Curves and Grids ...
Page 1564: ...1524 Chapter 32 Grids ...
Page 1611: ...Documentation 5 1571 ...
Page 1612: ...1572 Chapter 36 Documentation ...
Page 1706: ...Stretching a surface opening Moving a surface opening 1666 Chapter 36 Spaces ...
Page 1710: ...Offsetting the edge of a window opening on a freeform space surface 1670 Chapter 36 Spaces ...
Page 1956: ...1916 Chapter 42 Fields ...
Page 2035: ...Properties of a detail callout The Properties of a Callout Tool 1995 ...
Page 2060: ...2020 Chapter 45 Callouts ...
Page 2170: ...2130 Chapter 47 AEC Content and DesignCenter ...
Page 2171: ...Other Utilities 6 2131 ...
Page 2172: ...2132 Chapter 48 Other Utilities ...
Page 2182: ...2142 Chapter 51 Reference AEC Objects ...
Page 2212: ...2172 Chapter 52 Customizing and Adding New Content for Detail Components ...
Page 2217: ...AutoCAD Architecture 2008 Menus 54 2177 ...
Page 2226: ...2186 Chapter 54 AutoCAD Architecture 2008 Menus ...
Page 2268: ...2228 Index ...