ArchitectureElementsGeometryService
Canonical path: NemAll_Python_ArchElements.ArchitectureElementsGeometryService
Implementation of the architecture elements geometry service
Methods:
-
CreatePlacementArc–Create a placement arc at the placement point
-
GetOpeningOffsetPoints–Get the offset points for the opening
-
GetOuterPolyline–Get the outer polyline from a curved element located at the reference line
-
GetOutlineSegmentAndPoint–Get the outline segment and point related to the reference point
-
IsOpeningPlacementAtFirstTier–Get the placement state of the opening
-
SelectTier–Selecte a tier
CreatePlacementArc
staticmethod
GetOpeningOffsetPoints
staticmethod
GetOuterPolyline
staticmethod
GetOuterPolyline(
elementPolygon: Polygon2D, refLine: Line2D, elementAxis: object
) -> Polyline2D
Get the outer polyline from a curved element located at the reference line
Parameters:
-
elementPolygon(Polygon2D) –Polygon of the curved element
-
refLine(Line2D) –Reference line of the polyline
-
elementAxis(object) –Axis of the element
Returns:
-
Polyline2D–Outer polyline
GetOutlineSegmentAndPoint
staticmethod
GetOutlineSegmentAndPoint(
element: BaseElementAdapter, refPoint: Point2D
) -> tuple[Line2D, Point2D, BaseElementAdapter]
Get the outline segment and point related to the reference point
Parameters:
-
element(BaseElementAdapter) –Element
-
refPoint(Point2D) –Reference point
Returns:
-
tuple[Line2D, Point2D, BaseElementAdapter]–Outline segment, point and element
IsOpeningPlacementAtFirstTier
staticmethod
IsOpeningPlacementAtFirstTier(
openingPlacementEle: BaseElementAdapter,
openingStartPnt: Point2D,
openingEndPnt: Point2D,
) -> bool
Get the placement state of the opening
Parameters:
-
openingPlacementEle(BaseElementAdapter) –GUID of the placement element
-
openingStartPnt(Point2D) –Start point of the opening
-
openingEndPnt(Point2D) –End point of the opening
Returns:
-
bool–Opening placement is located at first tier state
SelectTier
staticmethod
SelectTier(
parentEle: BaseElementAdapter, selectionPoint: Point2D
) -> BaseElementAdapter
Selecte a tier
Parameters:
-
parentEle(BaseElementAdapter) –Parent element
-
selectionPoint(Point2D) –Selection point
Returns:
-
BaseElementAdapter–Selected tier