User Manual - Page 3251

For AUTOCAD 2011.

Loading ...
Loading ...
Loading ...
defining the gross area of a space, where structural members are not considered,
even if they are bounding the base profile of the space.
public class BoundingObjectRuleGross : AecBoundingObjectRule
{
public BoundingObjectRuleGross()
{
RegisterType(typeof(kAllTypes));
}
public override bool Apply(ObjectId idSpace, ObjectId idObject)
{
bool result=true;
Autodesk.AutoCAD.DatabaseServices.Database db =idObject.Data
base;
using (Autodesk.AutoCAD.DatabaseServices.Transaction transac
tion =db.TransactionManager.StartTransaction())
{
Member member = transaction.GetObject(idObject, OpenMode.For
Read) as Member;
if ( member == null )
{
MemberType memType = member.MemberType;
if ( memType == MemberType.Column )
{
result = false;
}
}
transaction.Commit();
}
return result;
}
}
The figure below shows an example of applying this rule, where the net
boundary (green) includes the columns, while the gross boundary (blue)
ignores them
Implementing Offset Rules | 3195
Loading ...
Loading ...
Loading ...