mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 10:51:13 +00:00
You can now relate and export document references and information entities
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user