Replies: 1 comment 1 reply
-
You can modify step files after importing them. import cadquery as cq
filepath = "/home/jwright/Downloads/ex.step"
ex = cq.Workplane().box(10, 10, 10)
cq.exporters.export(ex, filepath)
ex2 = cq.importers.importStep(filepath)
ex2 = ex2.faces(">Z").workplane(invert=True).circle(3.0).extrude(5.0, combine='cut')
ex2 = ex2.edges("<Z and |Y").fillet(1.0)
show_object(ex2) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
it's easy to import a Step file, currently using cq-editor on win but anyway...
import cadquery as cq
result = cq.importers.importStep('P:\ath\to\File.stp')
But can we also edit the file, so go through the single items, like plane/circle/points,
and modify them, and export afterwards ?
Beta Was this translation helpful? Give feedback.
All reactions