New UI to create, manage, and run clash sets within BlenderBIM Add-on

This commit is contained in:
Dion Moult
2020-05-19 15:08:54 +10:00
parent e45f5d867b
commit bc56196f27
5 changed files with 175 additions and 20 deletions
+18 -2
View File
@@ -467,6 +467,22 @@ class DocumentReference(PropertyGroup):
referenced_document: StringProperty(name="Referenced Document")
class ClashSource(PropertyGroup):
name: StringProperty(name='File')
selector: StringProperty(name='Selector')
mode: EnumProperty(items=[
('i', 'Include', 'Only the selected objects are included for clashing'),
('e', 'Exclude', 'All objects except the selected objects are included for clashing')
], name='Mode')
class ClashSet(PropertyGroup):
name: StringProperty(name='Name')
tolerance: FloatProperty(name='Tolerance')
a: CollectionProperty(name='Group A', type=ClashSource)
b: CollectionProperty(name='Group B', type=ClashSource)
class BcfTopic(PropertyGroup):
name: StringProperty(name='Name')
@@ -929,8 +945,8 @@ class BIMProperties(PropertyGroup):
active_document_information_index: IntProperty(name='Active Document Information Index')
document_references: CollectionProperty(name='Document References', type=DocumentReference)
active_document_reference_index: IntProperty(name='Active Document Reference Index')
ifc_clash_a: StringProperty(name="IFC Clash A")
ifc_clash_b: StringProperty(name="IFC Clash B")
clash_sets: CollectionProperty(name='Clash Sets', type=ClashSet)
active_clash_set_index: IntProperty(name='Active Clash Set Index')
class BCFProperties(PropertyGroup):