Skip to main content

export_step

Kind: Function
Domain: Modeling and geometry
Canonical import: from cadflow import export_step

Signature

def export_step(shapes: 'Union[AnyShape, Sequence[AnyShape]]', filename: 'str') -> 'None'

Description

Export shapes to STEP.

Other public imports

  • from cadflow import to_step

Parameters

NameTypeRequiredDefaultSource description
shapes'Union[AnyShape, Sequence[AnyShape]]'yes-A single exportable shape or any nested sequence of exportable shapes. Lists of Solid are supported directly, including pattern or explicitly collected multi-shape results.
filename'str'yes-Output STEP file path.

Returns

Type: 'None'

None: Writes the provided shapes into one STEP file.

Usage: Use this function when you want to export one shape or many shapes into the same STEP file. Passing List[Solid] is valid for pattern outputs or explicit shape collections. Boolean operations return a single Solid.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Behavior and constraints

  • This operation writes an external artifact. Validate the returned path or output file before delivery.

Import check

from cadflow import export_step

See also