mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Add AI-enabled web 2.0 hypermedia API generate digital twin button
This commit is contained in:
@@ -79,6 +79,7 @@ if bpy is not None:
|
|||||||
operator.RemoveSubcontext,
|
operator.RemoveSubcontext,
|
||||||
operator.CutSection,
|
operator.CutSection,
|
||||||
operator.CreateSheets,
|
operator.CreateSheets,
|
||||||
|
operator.GenerateDigitalTwin,
|
||||||
prop.Subcontext,
|
prop.Subcontext,
|
||||||
prop.BIMProperties,
|
prop.BIMProperties,
|
||||||
prop.DocProperties,
|
prop.DocProperties,
|
||||||
|
|||||||
@@ -851,3 +851,11 @@ class CreateSheets(bpy.types.Operator):
|
|||||||
sheet_builder.data_dir = bpy.context.scene.BIMProperties.data_dir
|
sheet_builder.data_dir = bpy.context.scene.BIMProperties.data_dir
|
||||||
sheet_builder.build()
|
sheet_builder.build()
|
||||||
return {'FINISHED'}
|
return {'FINISHED'}
|
||||||
|
|
||||||
|
class GenerateDigitalTwin(bpy.types.Operator):
|
||||||
|
bl_idname = 'bim.generate_digital_twin'
|
||||||
|
bl_label = 'Generate Digital Twin'
|
||||||
|
|
||||||
|
def execute(self, context):
|
||||||
|
# Does absolutely nothing at all :D
|
||||||
|
return {'FINISHED'}
|
||||||
|
|||||||
@@ -203,6 +203,9 @@ class BIM_PT_documentation(Panel):
|
|||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.operator('bim.create_sheets')
|
row.operator('bim.create_sheets')
|
||||||
|
|
||||||
|
row = layout.row()
|
||||||
|
row.operator('bim.generate_digital_twin')
|
||||||
|
|
||||||
class BIM_PT_context(Panel):
|
class BIM_PT_context(Panel):
|
||||||
bl_label = "Geometric Representation Contexts"
|
bl_label = "Geometric Representation Contexts"
|
||||||
bl_idname = "BIM_PT_context"
|
bl_idname = "BIM_PT_context"
|
||||||
@@ -430,3 +433,4 @@ class BIM_PT_mvd(Panel):
|
|||||||
row.prop(bim_properties, "import_should_ignore_site_coordinates")
|
row.prop(bim_properties, "import_should_ignore_site_coordinates")
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.prop(bim_properties, "import_should_import_curves")
|
row.prop(bim_properties, "import_should_import_curves")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user