WIP implement document assign/unassign. See #1222.

This commit is contained in:
Dion Moult
2021-01-23 11:58:29 +11:00
parent 395d63279f
commit b7f574fa30
6 changed files with 222 additions and 2 deletions
@@ -12,6 +12,7 @@ from bpy.props import (
CollectionProperty,
)
class Document(PropertyGroup):
name: StringProperty(name="Name")
identification: StringProperty(name="Identification")
@@ -24,3 +25,10 @@ class BIMDocumentProperties(PropertyGroup):
documents: CollectionProperty(name="Documents", type=Document)
active_document_index: IntProperty(name="Active Document Index")
is_editing: StringProperty(name="Is Editing")
class BIMObjectDocumentProperties(PropertyGroup):
is_adding: StringProperty(name="Is Adding")
available_document_types: EnumProperty(
items=[(d, d, "") for d in ["IfcDocumentInformation", "IfcDocumentReference"]], name="Available Document Types"
)