IPCB_ComponentClearanceConstraint interface
A component clearance rule (TRuleKind.eRule_ComponentClearance) that defines the minimum distance between components, horizontally (Gap) and vertically (VerticalGap).
public interface IPCB_ComponentClearanceConstraint : IPCB_Rule
Namespace: PCB · Assembly: Altium.SDK.Interfaces
Inherits: IPCB_Primitive → IPCB_Rule
Remarks
The rule checks pairs of components and component bodies (IPCB_ComponentBody). A new rule has a horizontal and a vertical clearance of 10 mil.
Properties
| Property | Type | Access | Description |
|---|---|---|---|
| CollisionCheckMode | TComponentCollisionCheckMode | get; set | A check mode that the rule no longer uses. |
| Gap | int | get; set | The minimum horizontal clearance between components, in the plane of the board, in internal units (10,000 per mil). |
| ShowDistances | bool | get; set | Whether the check searches for the closest points of two components that are closer than the clearance, instead of stopping at the first points found within the clearance. |
| VerticalGap | int | get; set | The minimum vertical clearance between components, perpendicular to the board, in internal units (10,000 per mil). |
CollisionCheckMode
A check mode that the rule no longer uses.
TComponentCollisionCheckMode GetState_CollisionCheckMode();
void SetState_CollisionCheckMode(TComponentCollisionCheckMode argValue);
Type: TComponentCollisionCheckMode · Access: read/write
The accessors are extension methods of IPCB_ComponentClearanceConstraintHelper (using PCB;).
Reading always returns TComponentCollisionCheckMode.eComponentBodyCheck; assigning a value has no effect.
Gap
The minimum horizontal clearance between components, in the plane of the board, in internal units (10,000 per mil).
int GetState_Gap();
void SetState_Gap(int argValue);
Type: int · Access: read/write
A new rule has 10 mil.
ShowDistances
Whether the check searches for the closest points of two components that are closer than the clearance, instead of stopping at the first points found within the clearance.
bool GetState_ShowDistances();
void SetState_ShowDistances(bool argValue);
Type: bool · Access: read/write
The default is false.
VerticalGap
The minimum vertical clearance between components, perpendicular to the board, in internal units (10,000 per mil).
int GetState_VerticalGap();
void SetState_VerticalGap(int argValue);
Type: int · Access: read/write
A new rule has 10 mil.
Inherited members
- From IPCB_Rule: ActualCheck, ActualCheck_1, CheckBinaryScope, CheckUnaryScope, CollisionExpansion, Comment, DataSummaryString, DefinedByLogicalDocument, DRCEnabled, Export_ToParameters_1, GetWhatsThisHelpString, IsUnary, LayerKind, Name, NetScope, NetScopeMatches, Priority, RuleKind, Scope1Expression, Scope1Includes, Scope2Expression, Scope2Includes, ScopeDescriptorString, ScopeKindIsValid, ShortDescriptorString, ViolationDescriptorString
- From IPCB_Primitive: AllowGlobalEdit, BeginModify, Board, BoundingRectangle, BoundingRectangleChildren, BoundingRectangleForPainting, BoundingRectangleForSelection, CancelModify, Component, Coordinate, DescriptorString, DetailString, Dimension, DrawAsPreview, DRCError, Enabled, Enabled_Direct, Enabled_vComponent, Enabled_vCoordinate, Enabled_vDimension, Enabled_vNet, Enabled_vPolygon, EnableDraw, EndModify, Export_ToParameters, FlipXY, GraphicallyInvalidate, Handle, Identifier, InBoard, InComponent, InCoordinate, Index, InDimension, InNet, InPolygon, InSelectionMemory, IsAssyTestPoint_Bottom, IsAssyTestPoint_Top, IsElectricalPrim, IsFreePrimitive, IsHidden, IsKeepout, IsPreRoute, IsSaveable, IsTenting, IsTenting_Bottom, IsTenting_Top, IsTestPoint_Bottom, IsTestPoint_Top, Layer, MiscFlag1, MiscFlag2, MiscFlag3, Moveable, MoveByXY, MoveToXY, Net, ObjectID, ObjectIDString, PadCacheRobotFlag, PasteMaskExpansion, Polygon, PolygonOutline, PowerPlaneClearance, PowerPlaneConnectStyle, PowerPlaneReliefExpansion, Preview, ReliefAirGap, ReliefConductorWidth, ReliefEntries, Replicate, RequiredParamterSpace, RotateBy, Selected, SolderMaskExpansion, SwapLayerPairs, TearDrop, UnionIndex, UniqueId, UniqueID, Used, UserRouted, V7Layer, ViewableObjectID