Replies: 4 comments
-
Beta Was this translation helpful? Give feedback.
-
@gumyr Thanks a lot for the feedback, that gets me much further along … one more question, I notice that the
Many thanks, |
Beta Was this translation helpful? Give feedback.
-
The results of visible, hidden = part.part.project_to_viewport((-50, -20, 50))
with BuildSketch() as drawing:
trace(visible, 1)
TechnicalDrawing(page_size=(PageSize.A3)) Here I've set the line width to Another option that is probably more flexible is to create new Sketch object of the tracing so it can be positioned and added easily: visible, hidden = part.part.project_to_viewport((-50, -20, 50))
visible_lines = scale(trace(visible, 1), by=0.75)
visible_lines.position += (-120, 75)
# Create the drawing with dimensions.
draft = Draft()
with BuildSketch() as drawing:
add(visible_lines)
# trace(visible, 1)
add(drawing_slice)
# Create a bounding box so we can get overall dimensions.
box = bounding_box(objects=drawing_slice, mode=Mode.PRIVATE)
ExtensionLine(border=box.edges().sort_by(Axis.X)[0], offset=-10, draft=draft)
ExtensionLine(border=box.edges().sort_by(Axis.Y)[0], offset=-10, draft=draft)
TechnicalDrawing(page_size=(PageSize.A3)) All of this needs to go into the missing "How to create Technical Drawings" documentation page. |
Beta Was this translation helpful? Give feedback.
-
@gumyr Thanks for the response, particularly the clarification that a Sketch is a collection of faces - that was not obvious to me. Maybe I’ll submit a writeup if I can get this toy example fully dimensioned. Thanks again, |
Beta Was this translation helpful? Give feedback.
-
Thanks for build123d, I really enjoy the programmatic workflow. I am most interested in producing technical drawings for manual machining, and I’ve gotten to a place where I have a nice clean separation between defining the part, and defining the drawing. However, it relies on having a sketch I can add to the drawing, where I’d rather create projections of the 3D part. The
project()
operation seems like the answer, but I’ve yet to get it to work; is there an example somewhere that I’ve missed? I didn’t see anything in the tutorials.Thanks in advance,
Tim
Beta Was this translation helpful? Give feedback.
All reactions