mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Resource Features :
- Adding/removing and edit productivity data is now easier (+ cleaner UI) - Pressing calculate schedule work on a parent resource will default to calculating its nested resources schedule work. - Show derived Schedule Work for a parent resource - Improve apperance of Resource Tree Structure
This commit is contained in:
@@ -112,3 +112,6 @@ def get_resource_required_work(resource):
|
||||
required_work = total_quantity_to_produce * productivity_ratio
|
||||
iso_string = f"P{required_work}D"
|
||||
return iso_string
|
||||
|
||||
def get_nested_resources(resource):
|
||||
return [object for rel in resource.IsNestedBy or [] for object in rel.RelatedObjects]
|
||||
Reference in New Issue
Block a user