mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 19:30:25 +00:00
Remove usage of .wrapped_item and some other fixes
This commit is contained in:
@@ -52,7 +52,7 @@ class SvIfcCreateProject(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helpe
|
||||
# file
|
||||
file = self.inputs["file"].sv_get()[0][0]
|
||||
if file:
|
||||
schema_name = file.wrapped_data.schema
|
||||
schema_name = file.schema
|
||||
else:
|
||||
schema_name = "IFC4"
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ class SvIfcRemove(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper.SvIfc
|
||||
def process(self):
|
||||
file: ifcopenshell.file
|
||||
file = self.inputs["file"].sv_get()[0][0]
|
||||
self.new_file = ifcopenshell.file.from_string(file.wrapped_data.to_string())
|
||||
self.new_file = ifcopenshell.file.from_string(file.to_string())
|
||||
self.remove_entity(self.inputs["entity"].sv_get())
|
||||
self.outputs["file"].sv_set([[self.new_file]])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user