forked from 1b-agent/opencadstudio-upstream
fix: use PlotSettings paper dimensions for correct paper-space rendering
paper_limits() now reads paper_width/paper_height/plot_rotation from the Layout object (populated by a patched acadrust from the embedded DWG PlotSettings). This fixes layouts where min/max_limits do not match the physical paper size (e.g. A4 portrait content inside A3 landscape limits). DXF files use codes 44/45/73 from raw_plot_settings_codes; DWG files use the PlotSettings block embedded in the LAYOUT object. Both fall back to min/max_limits when paper_width is zero. Depends on HakanSeven12/acadrust feat/layout-paper-dimensions (PR #21 on hakanaktt/acadrust); using that fork until the PR is merged. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
1 parent
cbb37a0909
commit
3298ebff91
3 files changed
+33
-14
No files matched your search
@@ -21,3 +21,6 @@ rayon = "1"
|
||||
|
||||
[target.'cfg(target_os = "windows")'.dependencies]
|
||||
windows-sys = { version = "0.59", features = ["Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
|
||||
|
||||
[patch.crates-io]
|
||||
acadrust = { git = "https://github.com/HakanSeven12/acadrust.git", branch = "feat/layout-paper-dimensions" }
|
||||
Reference in new issue
Block a user