Skip to content

Part 3/3: Generate full technical drawing with titleblock#2068

Draft
antonysigma wants to merge 1 commit into
CadQuery:masterfrom
antonysigma:technical-drawing-example
Draft

Part 3/3: Generate full technical drawing with titleblock#2068
antonysigma wants to merge 1 commit into
CadQuery:masterfrom
antonysigma:technical-drawing-example

Conversation

@antonysigma

@antonysigma antonysigma commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

API change: is_hidden=True to draw hidden lines in the DXF file.

Borrow the (deprecated) DXF template representing an A3-sized titleblock page from the FreeCAD repository. The FreeCAD authors moved away from text/regex-based template to a native SVG tech-drawing software module. Assume first angle projection. FreeCAD watermark to be modified to CADQuery logo.

In the examples/gen_drawing.py script, make a generic 3D Part. Apply first angle projections for visible and hidden edges. Inject them to the A3-sized titleblock.

Also, populate the titlecard with material mass (estimated from the volume of the part by mypart.val().volume()), drawing scale, description, and part revision hash via the git describe trick.

Expected output:
image

image

API change: `is_hidden=True` to draw hidden lines in the DXF file.

Borrow the (deprecated) DXF template representing an A3-sized titleblock
page from the FreeCAD repository. The FreeCAD authors moved away from
text/regex-based template to a native SVG tech-drawing software module.
Assume first angle projection. FreeCAD watermark to be modified to
CADQuery logo.

In the `examples/gen_drawing.py` script, make a generic 3D Part. Apply
first angle projections for visible and hidden edges. Inject them to the
A3-sized titleblock.

Also, populate the titlecard with material mass (estimated from the
volume of the part by cadquery), drawing scale, description, and part
revision hash via the `git describe` trick.
@antonysigma
antonysigma force-pushed the technical-drawing-example branch from 0def753 to 3930798 Compare July 15, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant