RoomProperties
Canonical path: NemAll_Python_ArchElements.RoomProperties
Bases: ArchBaseProperties
Implementation of the Room properties
Methods:
-
GetAttributes–Get the room attributes
-
GetFunction–Get the function
-
GetStoreyCode–Get the storey code
-
GetText–Get the value of the attributes Text1 to Text5
-
SetAttribute–Set the attribute
-
SetFunction–Set the function
-
SetStoreyCode–Set the storey code
-
SetText–Set a value to the attributes Text1 to Text5
-
__init__–Overloaded function. See individual overloads.
Attributes:
-
Function(str) –Get the function
-
StoreyCode(str) –Get the storey code
GetAttributes
GetAttributes(
doc: DocumentAdapter, onlyModifiable: bool
) -> list[int | float | str]
Get the room attributes
Parameters:
-
doc(DocumentAdapter) –Document
-
onlyModifiable(bool) –when true, gets only modifiable attributes, otherwise gets all attributes
Returns:
-
list[int | float | str]–List with the attributes represented with tuples like (attributeID, attributeValue)
GetText
Get the value of the attributes Text1 to Text5
Parameters:
-
number(int) –Number (1-5 allowed)
Returns: Value of the attribute
SetAttribute
SetAttribute(
attrib: (
AttributeInteger | AttributeDouble | AttributeString | AttributeEnum
),
)
Set the attribute
Parameters:
-
attrib(AttributeInteger | AttributeDouble | AttributeString | AttributeEnum) –Attribute
SetStoreyCode
Set the storey code
Parameters:
-
storeyCode(str) –Storey code
SetText
Set a value to the attributes Text1 to Text5
Parameters:
-
text(str) –Desired value of the attribute
-
number(int) –Number (1-5 allowed)