mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
Minor naming changes in IfcFM to be more true to IFC jargon
This commit is contained in:
@@ -72,8 +72,8 @@ def get_facility_data(ifc_file, element):
|
|||||||
"ModelProjectID": ifc_file.by_type("IfcProject")[0].GlobalId,
|
"ModelProjectID": ifc_file.by_type("IfcProject")[0].GlobalId,
|
||||||
"ModelSiteID": getattr(get_facility_parent(element, "IfcSite"), "GlobalId", None),
|
"ModelSiteID": getattr(get_facility_parent(element, "IfcSite"), "GlobalId", None),
|
||||||
"ModelBuildingID": element.GlobalId,
|
"ModelBuildingID": element.GlobalId,
|
||||||
"LinearUnits": "millimeters",
|
"LengthUnit": "millimeters",
|
||||||
"AreaUnits": "square meters",
|
"AreaUnit": "square meters",
|
||||||
"Phase": ifc_file.by_type("IfcProject")[0].Phase,
|
"Phase": ifc_file.by_type("IfcProject")[0].Phase,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ def get_space_data(ifc_file, element):
|
|||||||
"Description": element.LongName,
|
"Description": element.LongName,
|
||||||
"ClassificationIdentification": get_classification_identification(element),
|
"ClassificationIdentification": get_classification_identification(element),
|
||||||
"ClassificationName": get_classification_name(element),
|
"ClassificationName": get_classification_name(element),
|
||||||
"LevelName": getattr(get_facility_parent(element, "IfcBuildingStorey"), "Name", None),
|
"StoreyName": getattr(get_facility_parent(element, "IfcBuildingStorey"), "Name", None),
|
||||||
"OrganizationName": get_owner_name(element),
|
"OrganizationName": get_owner_name(element),
|
||||||
"CreationDate": get_owner_creation_date(element),
|
"CreationDate": get_owner_creation_date(element),
|
||||||
"ModelSoftware": get_owner_application(element),
|
"ModelSoftware": get_owner_application(element),
|
||||||
@@ -261,8 +261,8 @@ config = {
|
|||||||
"ModelProjectID",
|
"ModelProjectID",
|
||||||
"ModelSiteID",
|
"ModelSiteID",
|
||||||
"ModelBuildingID",
|
"ModelBuildingID",
|
||||||
"LinearUnits",
|
"LengthUnit",
|
||||||
"AreaUnits",
|
"AreaUnit",
|
||||||
"Phase",
|
"Phase",
|
||||||
],
|
],
|
||||||
"colours": "ppppreeeeesss",
|
"colours": "ppppreeeeesss",
|
||||||
@@ -295,7 +295,7 @@ config = {
|
|||||||
"Description",
|
"Description",
|
||||||
"ClassificationIdentification",
|
"ClassificationIdentification",
|
||||||
"ClassificationName",
|
"ClassificationName",
|
||||||
"LevelName",
|
"StoreyName",
|
||||||
"OrganizationName",
|
"OrganizationName",
|
||||||
"CreationDate",
|
"CreationDate",
|
||||||
"ModelSoftware",
|
"ModelSoftware",
|
||||||
@@ -305,7 +305,7 @@ config = {
|
|||||||
"NetFloorArea",
|
"NetFloorArea",
|
||||||
],
|
],
|
||||||
"colours": "ppprreeess",
|
"colours": "ppprreeess",
|
||||||
"sort": [{"name": "LevelName", "order": "ASC"}, {"name": "Name", "order": "ASC"}],
|
"sort": [{"name": "StoreyName", "order": "ASC"}, {"name": "Name", "order": "ASC"}],
|
||||||
"get_category_elements": get_spaces,
|
"get_category_elements": get_spaces,
|
||||||
"get_element_data": get_space_data,
|
"get_element_data": get_space_data,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user