mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Minor fix.
This commit is contained in:
@@ -10,7 +10,6 @@ if bpy is not None:
|
|||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
"project": None,
|
"project": None,
|
||||||
"parametric": None,
|
|
||||||
"search": None,
|
"search": None,
|
||||||
"bcf": None,
|
"bcf": None,
|
||||||
"root": None,
|
"root": None,
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
import bpy
|
|
||||||
from . import ui, operator
|
|
||||||
|
|
||||||
classes = (
|
|
||||||
operator.ActivateParametricEngine,
|
|
||||||
ui.BIM_PT_parametric,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def register():
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def unregister():
|
|
||||||
pass
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
import bpy
|
|
||||||
from blenderbim.bim.ifc import IfcStore
|
|
||||||
|
|
||||||
|
|
||||||
class ActivateParametricEngine(bpy.types.Operator):
|
|
||||||
bl_idname = "bim.activate_parametric_engine"
|
|
||||||
bl_label = "Activate Parametric Engine"
|
|
||||||
|
|
||||||
def execute(self, context):
|
|
||||||
return {"FINISHED"}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
from bpy.types import Panel
|
|
||||||
from blenderbim.bim.ifc import IfcStore
|
|
||||||
from ifcopenshell.api.type.data import Data
|
|
||||||
|
|
||||||
|
|
||||||
class BIM_PT_parametric(Panel):
|
|
||||||
bl_label = "IFC Parametric Engines"
|
|
||||||
bl_idname = "BIM_PT_parametric"
|
|
||||||
bl_options = {"DEFAULT_CLOSED"}
|
|
||||||
bl_space_type = "PROPERTIES"
|
|
||||||
bl_region_type = "WINDOW"
|
|
||||||
bl_context = "scene"
|
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def poll(cls, context):
|
|
||||||
return IfcStore.get_file()
|
|
||||||
|
|
||||||
def draw(self, context):
|
|
||||||
#props = context.active_object.BIMTypeProperties
|
|
||||||
row = self.layout.row(align=True)
|
|
||||||
#row.prop(props, "relating_type_class", text="")
|
|
||||||
row.operator("bim.activate_parametric_engine", icon="PLUGIN")
|
|
||||||
Reference in New Issue
Block a user