Implement ability to edit labels

This commit is contained in:
Dion Moult
2020-12-28 12:50:22 +11:00
parent 3deba2e71e
commit bca9c82c3d
3 changed files with 28 additions and 1 deletions
+9 -1
View File
@@ -171,6 +171,10 @@ def updateBcfReferenceLink(self, context):
bpy.ops.bim.edit_bcf_reference_links()
def updateBcfLabel(self, context):
bpy.ops.bim.edit_bcf_labels()
def getDiagramScales(self, context):
global diagram_scales_enum
if (
@@ -595,6 +599,10 @@ class BcfReferenceLink(PropertyGroup):
name: StringProperty(name="Name", update=updateBcfReferenceLink)
class BcfLabel(PropertyGroup):
name: StringProperty(name="Name", update=updateBcfLabel)
class StrProperty(PropertyGroup):
pass
@@ -1026,7 +1034,7 @@ class BcfTopic(PropertyGroup):
file_ifc_spatial_structure_element: StringProperty(default="", name="IFC Spatial Structure Element")
reference_links: CollectionProperty(name="Reference Links", type=BcfReferenceLink)
reference_link: StringProperty(default="", name="Reference Link")
labels: CollectionProperty(name="Labels", type=StrProperty)
labels: CollectionProperty(name="Labels", type=BcfLabel)
label: StringProperty(default="", name="Label")
bim_snippet: PointerProperty(type=BcfBimSnippet)
document_references: CollectionProperty(name="Document References", type=BcfDocumentReference)