grains.cad.write_step_file¶
-
grains.cad.write_step_file(shape, filename, application_protocol='AP203')[source]¶ Exports a shape to a STEP file.
- Parameters
shape (TopoDS_Shape) – Shape to be exported, an object of the TopoDS_Shape class or one of its subclasses. See https://www.opencascade.com/doc/occt-7.4.0/refman/html/class_topo_d_s___shape.html
filename (str) – Name of the file the shape is saved into.
application_protocol ({‘AP203’, ‘AP214IS’, ‘AP242DIS’}, optional) – Version of schema used for the output STEP file. The default is ‘AP203’.
Notes
For details on how to read and write STEP files, see the documentation on https://dev.opencascade.org/doc/overview/html/occt_user_guides__step.html.