Skip to content

Plane References

Class full path: NemAll_Python_ArchElements.PlaneReferences

Bases: BasePlaneReferences

Implementation of the plane references

Attributes

AdaptTopLevelToPlane: int property writable

Type of the top level to plane adaption - 0: Normal - 1: Jamb wall - 2: Chimney

BottomElevation: float property writable

If PlaneDependency set to eAbsElevation: Bottom plane absolute elevation. Otherwise: offset to the lower plane

Direction: int property writable

Offset direction

  • 00: Vertical for both planes
  • 01: Perpendicular for bottom, vertical for top plane
  • 10: Vertical for bottom, perpendicular for top plane
  • 11: Perpendicular for both planes

Document: DocumentAdapter property writable

Document

LowerPlane: ReferencePlaneID property writable

Lower plane reference

MaxHeight: float property writable

Maximum component height from component bottom

ReferenceElement: BaseElementAdapter property writable

Reference element for the plane

TopElevation: float property writable

If PlaneDependency set to eAbsElevation: Top plane absolute elevation. Otherwise: offset to the upper plane.

UpperPlane: ReferencePlaneID property writable

Upper plane reference

Classes

PlaneReferenceDependency

Bases: IntEnum

Plane reference Dependency

Attributes

eAbsElevation = 0 class-attribute instance-attribute

Absolute elevation value

eBottomPlane = 1 class-attribute instance-attribute

Relative to lower plane

eTopPlane = 2 class-attribute instance-attribute

Relative to upper plane

Functions

__getitem__(key)

get the item for a key

Parameters:

Name Type Description Default
key Union[str, int, float]

value key

required

Returns:

Type Description
PlaneReferenceDependency

value for the key

Functions

GetAbsBottomElevation()

Get the absolute bottom elevation

Returns:

Type Description
float

Absolute bottom elevation

GetAbsTopElevation()

Get the absolute top elevation

Returns:

Type Description
float

Absolute top elevation

GetBottomElevation()

Get the bottom plane elevation

Returns:

Type Description
float

Bottom plane elevation

GetBottomPlaneDependency()

Get the bottom plane dependency

Returns:

Type Description
PlaneReferenceDependency

Bottom plane dependency

GetDocument()

Get the document

Returns:

Type Description
DocumentAdapter

Document

GetReferenceElement()

Get the reference element for the plane

GetTopElevation()

Get the top plane elevation

Returns:

Type Description
float

Top plane elevation

GetTopPlaneDependency()

Get the top plane dependency

Returns:

Type Description
PlaneReferenceDependency

Top plane dependency

SetBottomElevation(elevation)

Set the bottom plane elevation

Parameters:

Name Type Description Default
elevation float

Elevation

required

SetBottomPlaneDependency(dependency)

Set the bottom plane dependency

Parameters:

Name Type Description Default
dependency PlaneReferenceDependency

Dependency

required

SetBottomToBottom(planeRef)

Set the bottom level to the bottom level of the source plane reference

Parameters:

Name Type Description Default
planeRef PlaneReferences

Source plane reference

required

SetBottomToTop(planeRef)

Set the bottom level to the top level of the source plane reference

Parameters:

Name Type Description Default
planeRef PlaneReferences

Source plane reference

required

SetDocument(doc)

Set the document

Parameters:

Name Type Description Default
doc DocumentAdapter

Document

required

SetReferenceElement(refElement)

Set the reference element for the plane

Parameters:

Name Type Description Default
refElement BaseElementAdapter

Reference element

required

SetTopElevation(elevation)

Set the top plane elevation

Parameters:

Name Type Description Default
elevation float

Elevation

required

SetTopPlaneDependency(dependency)

Set the top plane dependency

Parameters:

Name Type Description Default
dependency PlaneReferenceDependency

Dependency

required

SetTopToBottom(planeRef)

Set the top level to the bottom level of the source plane reference

Parameters:

Name Type Description Default
planeRef PlaneReferences

Source plane reference

required

SetTopToTop(planeRef)

Set the top level to the top level of the source plane reference

Parameters:

Name Type Description Default
planeRef PlaneReferences

Source plane reference

required

__init__ overload

__init__(doc, refElement)

Constructor

Parameters:

Name Type Description Default
doc DocumentAdapter

Document

required
refElement BaseElementAdapter

Reference element for the plane (if current exist)

required
__init__(element)

Copy constructor

Parameters:

Name Type Description Default
element PlaneReferences

Element to copy

required

__repr__()

Convert to string