You can now relate and export document references and information entities

This commit is contained in:
Dion Moult
2020-05-01 19:13:54 +10:00
parent 784a394298
commit 04afc101a3
5 changed files with 25 additions and 0 deletions
@@ -812,6 +812,20 @@ class RemoveDocumentInformation(bpy.types.Operator):
return {'FINISHED'}
class AssignDocumentInformation(bpy.types.Operator):
bl_idname = 'bim.assign_document_information'
bl_label = 'Assign Document Information'
index: bpy.props.IntProperty()
def execute(self, context):
reference = bpy.context.scene.BIMProperties.document_references[self.index]
index = bpy.context.scene.BIMProperties.active_document_information_index
info = bpy.context.scene.BIMProperties.document_information
if index < len(info):
reference.referenced_document = info[index].name
return {'FINISHED'}
class AddDocumentReference(bpy.types.Operator):
bl_idname = 'bim.add_document_reference'
bl_label = 'Add Document Reference'