Skip to content

MacroElement

Canonical path: NemAll_Python_BasisElements.MacroElement

Bases: BasisElement, AllplanElement

Representation of the macro definition (smart symbol) in Allplan

Methods:

Attributes:

Hash property writable

Hash: str

Get the hash value

MacroProperties property writable

MacroProperties: MacroProperties

Get the macro properties

GetAttributesForSubElementInStrucutredContainer

GetAttributesForSubElementInStrucutredContainer(subElementID: type) -> object

Get the default attributes of object

Parameters:

  • subElementID (type) –

Returns:

  • object

    Attributes object

GetHash

GetHash() -> str

Get the hash value

Returns:

  • str

    Hash value string

GetMacroProperties

GetMacroProperties() -> MacroProperties

Get the macro properties

Returns:

GetSlideList

GetSlideList() -> list

Get the slide list

Returns:

  • list

    Slides of macro definition

SetAttributesForSubElementInStrucutredContainer

SetAttributesForSubElementInStrucutredContainer(
    attributeContainer: object, subElementID: type
)

Set the default attributes to object

Parameters:

  • attributeContainer (object) –

    Attributes object

  • subElementID (type) –

SetHash

SetHash(hash: str)

Set the hash value

Parameters:

  • hash (str) –

    Hash value string

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

__init__(element: MacroElement)

Copy constructor

Parameters:

__repr__

__repr__() -> str

Convert to string

Placeholder