Repository navigation
CAD to PDF: one page per sheet frame in model space (#535) - #2008
Draft
cre8ive-marketing wants to merge 1 commit into
Draft
cre8ive-marketing wants to merge 1 commit into
cre8ive-marketing wants to merge 1 commit into
Conversation
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.
Closes #535. Follows the plan on the issue, with your notes from the code.
What it does
CadSceneBuilder.BuildLayoutsreturns no sheets. A model-space drawing whoseLayout1holds only the viewport still splits by frames, and drawings with real layouts are unchanged (CAD → PDF: one page per paper-space layout, through its viewports (#172) #471).CadSceneBuilder.Frames.cs): it looks at model-space entities on shown layers.LWPOLYLINE.$INSUNITS. A unitless drawing is tried as both millimetres and inches.LayoutSheetwith an empty paper scene and oneViewportViewat 1:1 onto the frame. The existingCadRenderer.WritePdf(sheets, model, …)draws and clips it, so there's no second renderer. The view gets 0.25 % of room so the border line isn't clipped to half its width.Pdf.PageSizethroughPageLayout.ForPdf, the same as layout pages, so an A3-default preset gives A3. I didn't switch to the detected sheet size.LINEs. They could be added later if people need them.docs/ENGINES.mdare updated.Tests (
CadFrameTests, DXF built withCadBuilder)Layout1holding only a viewport, gives a 3-page PDF. Every page is A3 landscape, shows its frame's own line, and shows nothing from the frames next to it.