MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / execute

Method execute

src/ifcsverchok/__init__.py:184–198  ·  view source on GitHub ↗
(self, context)

Source from the content-addressed store, hash-verified

182 # infra-related spatial structure elements, such as IfcBridge.
183 # https://github.com/IfcOpenShell/IfcOpenShell/pull/2576#discussion_r1016261407
184 def execute(self, context):
185 import sverchok.node_tree
186
187 self.file = SvIfcStore.purge()
188 node_tree = context.space_data.node_tree
189 if node_tree:
190 assert isinstance(node_tree, sverchok.node_tree.SverchCustomTree)
191 if self.force_mode or node_tree.sv_process:
192 try:
193 bpy.context.window.cursor_set("WAIT")
194 node_tree.force_update()
195 finally:
196 bpy.context.window.cursor_set("DEFAULT")
197 self.report({"INFO"}, "Node tree updated.")
198 return {"FINISHED"}
199
200
201class IFC_Sv_write_file(bpy.types.Operator, ExportHelper):

Callers

nothing calls this directly

Calls 2

purgeMethod · 0.45
reportMethod · 0.45

Tested by

no test coverage detected