View Issue Details

IDProjectCategoryView StatusLast Update
0001823ArchBugpublic2021-09-21 08:56
Reporterlanciaux Assigned Toyorik  
PrioritylowSeverityminorReproducibilityalways
Status assignedResolutionopen 
Target Version0.20 
Summary0001823: Working plane not reset under Arch when making new project
DescriptionCurrent working plane settings are not reset after you create a new Project/Sheet.
Steps To Reproduce1. Make anything you want
2. Go to Arch
3. Setup a plane setting by selecting any face of your model
4. Close this Project/Sheet without saving it
5. Create a new Project/Sheet

Tagspython
FreeCAD Information

Activities

yorik

2014-11-10 23:55

administrator   ~0005303

Hm these are two independent things... I'm not sure if it would be a good thing or not to reset the work plane when opening a new model. You might have set it a certain way in another file, that might be convenient to keep it.

Besides, at the moment there is no mechanism to detect when a new document is opened from python, so this feature cannot be imlemented right now.

But let's leave it open, an idea could arise.

Kunda1

2017-06-03 15:47

administrator   ~0009277

@yorik can you weigh in on this again?

yorik

2017-06-05 15:46

administrator   ~0009287

Still no idea on how to detect when a new document has been created/opened :(

Kunda1

2017-10-18 11:03

administrator   ~0010313

Besides, at the moment there is no mechanism to detect when a new document is opened from python, so this feature cannot be imlemented right now.

yorik
@wmayer care to weigh in?

yorik

2018-12-05 12:58

administrator   ~0012237

This is now possible with the DocumentObserver. But since it can be disruptive, it's best to implement after the 0.18 release.

Kunda1

2020-12-08 01:41

administrator   ~0015116

Forum thread: https://forum.freecadweb.org/viewtopic.php?f=23&t=53021

yorik

2021-09-21 08:56

administrator   ~0015951

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

yorik

2022-03-03 13:55

administrator   ~0016438

This ticket has been migrated to GitHub as issue 5603.

Issue History

Date Modified Username Field Change
2014-11-10 20:52 lanciaux New Issue
2014-11-10 23:55 yorik Note Added: 0005303
2017-05-01 23:35 Kunda1 Tag Attached: python
2017-06-03 15:47 Kunda1 Note Added: 0009277
2017-06-05 15:46 yorik Note Added: 0009287
2017-10-18 11:03 Kunda1 Note Added: 0010313
2017-10-27 19:35 yorik Assigned To => yorik
2017-10-27 19:35 yorik Status new => assigned
2018-01-12 15:43 yorik Target Version => 0.18
2018-12-05 12:58 yorik Note Added: 0012237
2018-12-05 12:58 yorik Target Version 0.18 =>
2018-12-05 12:58 yorik Target Version => 0.19
2020-07-05 16:44 abdullah Project FreeCAD => Arch
2020-12-08 01:41 Kunda1 Note Added: 0015116
2021-02-06 06:28 abdullah Target Version => 0.20
2021-09-21 08:56 yorik Note Added: 0015951