mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Remove add grid in add menu, and run black
This commit is contained in:
@@ -266,6 +266,7 @@ def get_cost_values(cost_item: ifcopenshell.entity_instance) -> list[dict[str, s
|
||||
print(results)
|
||||
return results
|
||||
|
||||
|
||||
def get_cost_schedule_types(file):
|
||||
schema: ifcopenshell_wrapper.schema_definition = ifcopenshell_wrapper.schema_by_name(file.schema)
|
||||
results = []
|
||||
@@ -274,13 +275,16 @@ def get_cost_schedule_types(file):
|
||||
for attribute in declaration.attributes():
|
||||
if attribute.name() == "PredefinedType":
|
||||
for enumeration in attribute.type_of_attribute().declared_type().enumeration_items():
|
||||
results.append({
|
||||
"name": enumeration,
|
||||
'description': get_predefined_type_doc(version, "IfcCostSchedule",enumeration),
|
||||
})
|
||||
results.append(
|
||||
{
|
||||
"name": enumeration,
|
||||
"description": get_predefined_type_doc(version, "IfcCostSchedule", enumeration),
|
||||
}
|
||||
)
|
||||
break
|
||||
return results
|
||||
|
||||
|
||||
class CostValueUnserialiser:
|
||||
def parse(self, formula: str):
|
||||
l = lark.Lark(
|
||||
|
||||
Reference in New Issue
Block a user