2 Commits

Author SHA1 Message Date
NLSA 61b632cb4b Update Inputs as Optional
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
2025-03-06 09:11:09 +01:00
NLSA 7e4e29c365 Update main.py
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
2025-03-03 17:11:12 +01:00
+23 -16
View File
@@ -27,7 +27,7 @@ class FunctionInputs(AutomateBase):
file_name: str = Field(
title="File Name",
description="The name of the Excel file.",
description="The name of the Excel file to export.",
)
inlcude_areas: bool = Field(
@@ -43,38 +43,45 @@ class FunctionInputs(AutomateBase):
)
nua_list: str = Field(
title="NUA (Nett Usable Area)",
strict= False
title="NUA (Optional)",
description="Nett Usable Area",
default= " "
)
nia_list: str = Field(
title="NIA (Nett Internal Area)",
strict= False
title="NIA (Optional)",
description="Nett Internal Area",
default= " "
)
nla_list: str = Field(
title="NLA (Nett Leasable Area)",
strict= False
title="NLA (Optional)",
description="Nett Leasable Area",
default= " "
)
gia_list: str = Field(
title="GIA (Gross Internal Area)",
strict= False
title="GIA (Optional)",
description="Gross Internal Area",
default= " "
)
gea_list: str = Field(
title="GEA (Gross External Area)",
strict= False
title="GEA (Optional)",
description="Gross External Area",
default= " "
)
gla_list: str = Field(
title="GLA (Gross Leasable Area)",
strict= False
title="GLA (Optional)",
description="Gross Leasable Area",
default= " "
)
gba_list: str = Field(
title="GBA (Gross Building Area)",
strict= False
title="GBA (Optional)",
description="Gross Building Area",
default= " "
)
@@ -135,7 +142,7 @@ def automate_function(
# List of properties
list_prop = [
"category",
"level.name",
"properties.Level.name",
"properties.Parameters.Instance Parameters.Identity Data.Name.value",
"properties.Parameters.Instance Parameters.Dimensions.Area.value",
]