mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
This commit is contained in:
@@ -225,7 +225,10 @@ def serialize_shape(shape):
|
||||
shapes.SetFormatNb(2)
|
||||
|
||||
shapes.Add(shape)
|
||||
return shapes.WriteToString()
|
||||
if hasattr(shapes, "WriteToString"):
|
||||
return shapes.WriteToString()
|
||||
else:
|
||||
return shapes.Write()
|
||||
|
||||
|
||||
def create_shape_from_serialization(
|
||||
|
||||
Reference in New Issue
Block a user