Ticket #5603: Working plane not reset under Arch when making new project

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Ticket #5603: Working plane not reset under Arch when making new project

Post by Kunda1 »

issue #1823: Working plane not reset under Arch when making new project
Discussion thread

New ticket in GH issue #5603
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #5603: Working plane not reset under Arch when making new project

Post by Kunda1 »

New proposal per @yorik in https://github.com/FreeCAD/FreeCAD/issu ... 1126175296
New proposal: implementing per-document working plane
  • The grid system is already per view, so each view can display a different grid already.
  • The python interface should stays the same. You just get and set the working plane and shouldn't worry about anything else
  • Two possibilities: 1) FreeCAD.DraftWorkingPlane still give you the current working plane of the document. On switching documents, this value gets changed. A doc observer changes the value each time the active doc is changed or 2) FreeCAD.DraftWorkingPlane is replaced with Draft.getWorkingPlane() which does all the work. I favour 2) but it will break some workbenches
  • The working plane data can be stringified and saved to document meta
  • Draft.getWorkingPlane() always reads from the document meta
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply