mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 10:23:41 +00:00
New print IFC file debug operator
This commit is contained in:
@@ -2,6 +2,7 @@ import bpy
|
|||||||
from . import ui, prop, operator
|
from . import ui, prop, operator
|
||||||
|
|
||||||
classes = (
|
classes = (
|
||||||
|
operator.PrintIfcFile,
|
||||||
operator.ValidateIfcFile,
|
operator.ValidateIfcFile,
|
||||||
operator.ProfileImportIFC,
|
operator.ProfileImportIFC,
|
||||||
operator.CreateAllShapes,
|
operator.CreateAllShapes,
|
||||||
|
|||||||
@@ -5,6 +5,15 @@ import blenderbim.bim.import_ifc as import_ifc
|
|||||||
from blenderbim.bim.ifc import IfcStore
|
from blenderbim.bim.ifc import IfcStore
|
||||||
|
|
||||||
|
|
||||||
|
class PrintIfcFile(bpy.types.Operator):
|
||||||
|
bl_idname = "bim.print_ifc_file"
|
||||||
|
bl_label = "Print IFC File"
|
||||||
|
|
||||||
|
def execute(self, context):
|
||||||
|
print(IfcStore.get_file().wrapped_data.to_string())
|
||||||
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|
||||||
class ValidateIfcFile(bpy.types.Operator):
|
class ValidateIfcFile(bpy.types.Operator):
|
||||||
bl_idname = "bim.validate_ifc_file"
|
bl_idname = "bim.validate_ifc_file"
|
||||||
bl_label = "Validate IFC File"
|
bl_label = "Validate IFC File"
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ class BIM_PT_debug(Panel):
|
|||||||
row.operator("bim.validate_ifc_file", icon="CHECKMARK", text="")
|
row.operator("bim.validate_ifc_file", icon="CHECKMARK", text="")
|
||||||
row.operator("bim.select_ifc_file", icon="FILE_FOLDER", text="")
|
row.operator("bim.select_ifc_file", icon="FILE_FOLDER", text="")
|
||||||
|
|
||||||
|
row = layout.row()
|
||||||
|
row.operator("bim.print_ifc_file")
|
||||||
|
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.operator("bim.create_all_shapes")
|
row.operator("bim.create_all_shapes")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user