Skip to content

MacroElement

Canonical path: NemAll_Python_BasisElements.MacroElement

Bases: BasisElement, AllplanElement

Representation of the macro definition (smart symbol) in Allplan

GetAttributesForSubElementInStrucutredContainer

GetAttributesForSubElementInStrucutredContainer(subElementID: type) -> object

Get attributes for sub element in StructuredContainer

Parameters:

  • subElementID (type) –

    Sub element id

GetHash

GetHash() -> str

Get the hash value

Returns:

  • str

    Hash value

GetMacroProperties

GetMacroProperties() -> MacroProperties

Get the Macro properties

Returns:

GetSlideList

GetSlideList() -> list

Get the slide object list

Returns:

  • list

    Slide object list

SetAttributesForSubElementInStrucutredContainer

SetAttributesForSubElementInStrucutredContainer(
    attributeContainer: object, subElementID: type
)

Set attributes to sub element in StructuredContainer

Parameters:

  • attributeContainer (object) –

    AttributeSet

  • subElementID (type) –

    Sub element id

SetHash

SetHash(hash: str)

Set the hash value

Parameters:

  • hash (str) –

    Hash value

SetMacroProperties

SetMacroProperties(MacroProp: MacroProperties)

Set the Macro properties

Parameters:

__init__ overloaded

__init__()

Initialize

__init__(macroProp: MacroProperties, slideList: list)

Constructor

Parameters:

  • macroProp (MacroProperties) –

    Macro properties

  • slideList (list) –

    Slide list of macro definition

__repr__

__repr__() -> str

Convert the list to a string

Returns:

  • str

    List values as string

Placeholder