mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 08:13:14 +00:00
Document information is now always assigned to the project by default.
This commit is contained in:
@@ -41,7 +41,13 @@ class DocumentData:
|
||||
|
||||
@classmethod
|
||||
def total_information(cls):
|
||||
return len(tool.Ifc.get().by_type("IfcDocumentInformation"))
|
||||
return len(
|
||||
[
|
||||
rel
|
||||
for rel in tool.Ifc.get().by_type("IfcProject")[0].HasAssociations or []
|
||||
if rel.is_a("IfcRelAssociatesDocument") and rel.RelatingDocument.is_a("IfcDocumentInformation")
|
||||
]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def total_references(cls):
|
||||
|
||||
Reference in New Issue
Block a user