mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
Applications UI - also show app versions
So apps with different version would be identifiable by a glance.
This commit is contained in:
@@ -337,7 +337,11 @@ class ApplicationsData:
|
|||||||
ifc_file = tool.Ifc.get()
|
ifc_file = tool.Ifc.get()
|
||||||
for application in ifc_file.by_type("IfcApplication"):
|
for application in ifc_file.by_type("IfcApplication"):
|
||||||
total_inverses = ifc_file.get_total_inverses(application)
|
total_inverses = ifc_file.get_total_inverses(application)
|
||||||
|
version = application.Version
|
||||||
name = application.ApplicationFullName
|
name = application.ApplicationFullName
|
||||||
|
# Sometimes apps duplicate version in the full name (e.g. Revit).
|
||||||
|
if version not in name:
|
||||||
|
name += f" ({version})"
|
||||||
if total_inverses == 0:
|
if total_inverses == 0:
|
||||||
name += " (unused)"
|
name += " (unused)"
|
||||||
applications.append(
|
applications.append(
|
||||||
|
|||||||
Reference in New Issue
Block a user