export_modeling_ply_geometries#

Model.export_modeling_ply_geometries(path, *, modeling_plies=None, format='step', offset_type='middle_offset', include_surface=True, include_boundary=True, include_first_material_direction=True, include_second_material_direction=True, arrow_length=None, arrow_type='no_arrow')#

Write ply geometries to a STEP, IGES, or STL file.

Parameters:
  • path (str | PathLike[str]) – File path to save the geometries to.

  • modeling_plies (Iterable[ModelingPly] | None) – List of modeling plies whose geometries should be exported. If not provided, the geometries of all modeling plies in the model are exported.

  • format (PlyGeometryExportFormat) – Format of the created file. Can be one of "STEP", "IGES", or "STL".

  • offset_type (OffsetType) – Determines how the ply offset is calculated. Can be one of "NO_OFFSET", "BOTTOM_OFFSET", "MIDDLE_OFFSET", or "TOP_OFFSET".

  • include_surface (bool) – Whether to include the ply surface in the exported geometry.

  • include_boundary (bool) – Whether to include the ply boundary in the exported geometry.

  • include_first_material_direction (bool) – Whether to include the first material direction in the exported geometry.

  • include_second_material_direction (bool) – Whether to include the second material direction in the exported geometry.

  • arrow_length (float | None) – Size of the arrow used to represent the material directions. By default, the square root of the average element area is used.

  • arrow_type (ArrowType) – Type of the arrow used to represent the material directions. Can be one of "NO_ARROW", "HALF_ARROW", or "STANDARD_ARROW".