DisplayItem2
from OpenCAD2D import DisplayItem2
class DisplayItem2(System.Object) ยท DisplayItem2 in the .NET reference
One thing the canvas draws: a chain of segments, an arc, a fill, or a piece of text, in drawing coordinates, with the entity it came from.
Properties and fields
BlockClip
@property
def BlockClip(self) -> DisplayClipRegion | None
Gets the part of the plane the item is shown in where the block reference it came from is clipped (XCLIP), or one it stands in is; null for an item that is shown whole. The canvas draws only what is inside it.
Bounds
@property
def Bounds(self) -> DisplayBox
Gets the box that holds the item.
Handle
@property
def Handle(self) -> str
Gets the handle of the entity the item came from; an entity inside a block gives the handle of the outermost INSERT.
IsClipFrame
@property
def IsClipFrame(self) -> bool
Gets whether the item is the frame of a clip boundary (XCLIP), which is drawn over what the reference shows and not clipped by it.
IsNotPlotted
@property
def IsNotPlotted(self) -> bool
Gets whether the frame of a clip boundary is left out of a plot, as XCLIPFRAME 2 leaves it.
Layer
@property
def Layer(self) -> str
Gets the layer the item is drawn on.
Style
@property
def Style(self) -> DisplayStyle
Gets how the item is drawn.
Methods
DistanceTo
def DistanceTo(self, x: float, y: float) -> float
Gets the distance from a point to the item, the shortest to any part that is drawn; the distance to the nearest edge for a fill, nought inside it.
IsInside
def IsInside(self, box: DisplayBox) -> bool
Gets whether the item lies wholly inside a box, as a window selection asks.
Touches
def Touches(self, box: DisplayBox) -> bool
Gets whether any part of the item touches a box, as a crossing selection asks.