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