Skip to content

Workplane.save() #1153

@njourdane

Description

@njourdane

I like the simplicity of Assembly.save():

asm = ( cq.Assembly()
    .add(box)
    .save('box.step')
)

To export a model, in the other hand, the syntax is not as nice:

box = cq.Workplane().box(1, 2, 3)
cq.exporters.export(box, 'box.step')

I wonder if the assembly export syntax could be applied on a model as well, for consistency and simplicity:

box = ( cq.Workplane()
    .box(1, 2, 3)
    .save('box.step')
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions