mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Pset primary measure type should now display a tooltip on hover
Awaiting for ifc measure descriptions to be added to the docs
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
import blenderbim.tool as tool
|
||||
from blenderbim.bim.prop import get_ifc_entity_description
|
||||
|
||||
|
||||
# TODO: Should this cache belong here? Dunno. Maybe.
|
||||
@@ -173,4 +174,4 @@ class AddEditCustomPropertiesData:
|
||||
@classmethod
|
||||
def primary_measure_type(cls):
|
||||
schema = tool.Ifc.schema()
|
||||
return [(t, t, "") for t in sorted([d.name() for d in schema.declarations() if hasattr(d, "declared_type")])]
|
||||
return [(t, t, get_ifc_entity_description(t)) for t in sorted([d.name() for d in schema.declarations() if hasattr(d, "declared_type")])]
|
||||
|
||||
@@ -21,6 +21,7 @@ import bpy
|
||||
import ifcopenshell
|
||||
import blenderbim.tool as tool
|
||||
from blenderbim.bim.ifc import IfcStore
|
||||
from blenderbim.bim.prop import get_ifc_entity_description
|
||||
|
||||
|
||||
def refresh():
|
||||
@@ -43,7 +44,7 @@ class PsetTemplatesData:
|
||||
@classmethod
|
||||
def primary_measure_type(cls):
|
||||
schema = tool.Ifc.schema()
|
||||
return [(t, t, "") for t in sorted([d.name() for d in schema.declarations() if hasattr(d, "declared_type")])]
|
||||
return [(t, t, get_ifc_entity_description(t)) for t in sorted([d.name() for d in schema.declarations() if hasattr(d, "declared_type")])]
|
||||
|
||||
@classmethod
|
||||
def pset_template_files(cls):
|
||||
|
||||
Reference in New Issue
Block a user