New feature to calculate total length of selected edges

This commit is contained in:
Dion Moult
2020-08-08 14:22:48 +10:00
parent ec66d7c0b8
commit 43f0f396ab
4 changed files with 61 additions and 19 deletions
+41 -19
View File
@@ -69,6 +69,26 @@ class BIM_PT_object(Panel):
row = layout.row()
row.prop(props, 'relating_structure')
row = layout.row()
row.prop(props, 'material_type')
layout.label(text='Structural Boundary Condition:')
row = layout.row()
row.prop(props, 'has_boundary_condition')
if bpy.context.active_object.BIMObjectProperties.has_boundary_condition:
row = layout.row()
row.prop(props.boundary_condition, 'name')
for index, attribute in enumerate(props.boundary_condition.attributes):
row = layout.row(align=True)
row.prop(attribute, 'name', text='')
row.prop(attribute, 'string_value', text='')
row = layout.row()
row.prop(props, 'structural_member_connection')
class BIM_PT_object_psets(Panel):
bl_label = 'IFC Object Property Sets'
bl_idname = 'BIM_PT_object_psets'
@@ -147,25 +167,6 @@ class BIM_PT_object_qto(Panel):
op.qto_index = index
op.prop_index = index2
row = layout.row()
row.prop(props, 'material_type')
layout.label(text='Structural Boundary Condition:')
row = layout.row()
row.prop(props, 'has_boundary_condition')
if bpy.context.active_object.BIMObjectProperties.has_boundary_condition:
row = layout.row()
row.prop(props.boundary_condition, 'name')
for index, attribute in enumerate(props.boundary_condition.attributes):
row = layout.row(align=True)
row.prop(attribute, 'name', text='')
row.prop(attribute, 'string_value', text='')
row = layout.row()
row.prop(props, 'structural_member_connection')
class BIM_PT_document_information(Panel):
bl_label = 'IFC Documents'
@@ -483,6 +484,27 @@ class BIM_PT_psets(Panel):
row.operator('bim.remove_property_template', icon='X', text='').index = index
class BIM_PT_qto(Panel):
bl_label = 'IFC Quantity Take-off'
bl_idname = 'BIM_PT_qto'
#bl_options = {'DEFAULT_CLOSED'}
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
bl_context = 'scene'
def draw(self, context):
layout = self.layout
props = context.scene.BIMProperties
row = layout.row()
layout.label(text="Results:")
row = layout.row()
row.prop(props, 'qto_result', text='')
row = layout.row(align=True)
row.operator("bim.calculate_edge_lengths")
class BIM_PT_classifications(Panel):
bl_label = 'IFC Classifications References'
bl_idname = 'BIM_PT_classifications'