Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • extensions extensions
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 77
    • Issues 77
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Inkscape
  • extensionsextensions
  • Merge requests
  • !466

dxf12: base scale=mm

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Jonathan Neuhauser requested to merge joneuhauser/extensions:fix-dxf-scale into master Mar 14, 2022
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 5

What does the merge request do?

Close #443 (closed)

The base scale of dxf documents is mm, so we handle everything as if the viewport was transformed into mm (i.e. divide the scale by mm/px).

In general, documents based on physical units behave intuitively. 1in in an inch-based document renders as 1in in Fusion.

For px based documents, the length of objects in Fusion is the same as with any tool in Inkscape set to mm.

Output of both changed unit tests is correct in Autodesk Fusion.

Summary for release notes

The DXF12 export now exports documents with a scale different from 1 correctly.

Checklist

  • Add unit tests (if applicable)
  • Changes to inkex/ are well documented
  • Clean merge request history
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix-dxf-scale