cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

Workplane.save()

Open njourdane opened this issue 3 years ago • 0 comments

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')
)

njourdane avatar Sep 14 '22 06:09 njourdane