mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-30 03:59:55 +00:00
updated ui with Presentation Layer
This commit is contained in:
@@ -278,6 +278,7 @@ if bpy is not None:
|
|||||||
ui.BIM_PT_debug,
|
ui.BIM_PT_debug,
|
||||||
ui.BIM_PT_material,
|
ui.BIM_PT_material,
|
||||||
ui.BIM_PT_mesh,
|
ui.BIM_PT_mesh,
|
||||||
|
ui.BIM_PT_presentation,
|
||||||
ui.BIM_PT_object,
|
ui.BIM_PT_object,
|
||||||
ui.BIM_PT_object_psets,
|
ui.BIM_PT_object_psets,
|
||||||
ui.BIM_PT_object_qto,
|
ui.BIM_PT_object_qto,
|
||||||
|
|||||||
@@ -650,12 +650,6 @@ class BIM_PT_mesh(Panel):
|
|||||||
row.prop(ifc_parameter, "value", text="")
|
row.prop(ifc_parameter, "value", text="")
|
||||||
row.operator("bim.update_ifc_representation", icon="FILE_REFRESH", text="").index = index
|
row.operator("bim.update_ifc_representation", icon="FILE_REFRESH", text="").index = index
|
||||||
|
|
||||||
row = layout.row()
|
|
||||||
row.prop(props.presentation_layer, "name")
|
|
||||||
row.prop(props.presentation_layer, "description")
|
|
||||||
row.prop(props.presentation_layer, "identifier")
|
|
||||||
row.prop(props.presentation_layer, "layer_on")
|
|
||||||
|
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.prop(props, "is_parametric")
|
row.prop(props, "is_parametric")
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
@@ -683,6 +677,37 @@ class BIM_PT_mesh(Panel):
|
|||||||
row.prop(props, "swept_solids")
|
row.prop(props, "swept_solids")
|
||||||
|
|
||||||
|
|
||||||
|
class BIM_PT_presentation(Panel):
|
||||||
|
bl_label = "IFC Presentation Layers"
|
||||||
|
bl_idname = "BIM_PT_presentation"
|
||||||
|
bl_space_type = "PROPERTIES"
|
||||||
|
bl_region_type = "WINDOW"
|
||||||
|
bl_context = "data"
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def poll(cls, context):
|
||||||
|
return (
|
||||||
|
context.active_object is not None
|
||||||
|
and context.active_object.type == "MESH"
|
||||||
|
and hasattr(context.active_object.data, "BIMMeshProperties")
|
||||||
|
)
|
||||||
|
|
||||||
|
def draw(self, context):
|
||||||
|
if not context.active_object.data:
|
||||||
|
return
|
||||||
|
layout = self.layout
|
||||||
|
props = context.active_object.data.BIMMeshProperties
|
||||||
|
|
||||||
|
row = layout.row(align=True)
|
||||||
|
row.prop(props.presentation_layer, "name")
|
||||||
|
row = layout.row()
|
||||||
|
row.prop(props.presentation_layer, "description")
|
||||||
|
row = layout.row()
|
||||||
|
row.prop(props.presentation_layer, "identifier")
|
||||||
|
row = layout.row()
|
||||||
|
row.prop(props.presentation_layer, "layer_on")
|
||||||
|
|
||||||
|
|
||||||
class BIM_PT_material(Panel):
|
class BIM_PT_material(Panel):
|
||||||
bl_label = "IFC Materials"
|
bl_label = "IFC Materials"
|
||||||
bl_idname = "BIM_PT_material"
|
bl_idname = "BIM_PT_material"
|
||||||
|
|||||||
Reference in New Issue
Block a user