Part 3/3: Generate full technical drawing with titleblock#2068
Draft
antonysigma wants to merge 1 commit into
Draft
Part 3/3: Generate full technical drawing with titleblock#2068antonysigma wants to merge 1 commit into
antonysigma wants to merge 1 commit into
Conversation
antonysigma
force-pushed
the
technical-drawing-example
branch
from
July 15, 2026 15:05
423efae to
0def753
Compare
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
force-pushed
the
technical-drawing-example
branch
from
July 15, 2026 15:07
0def753 to
3930798
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API change:
is_hidden=Trueto 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.pyscript, 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 thegit describetrick.Expected output:
