quick61 wrote:As the templates go, the drawing placement mechanism is border and title block aware. The title block avoidance is a BIG plus! The views are no longer limited to just 4 as it was previously and you don't have to have 3 other views to get your iso view now, another real handy feature. I think thee was some more flexibility added with the iso views as well. j-dowsett's repo is no longer there... don't know where or why it wen't... just not there any more, but I see shoogen has pointed to the commit.
Hmmmm, maybe my github etiquette is incorrect... I considered that bit of work on the orthoviews to be finished so after it was merged I got rid of the 'finished' branch - I still have the 'working branch' though if it's needed at some point. Main difference is the working branch has all my 'personal' commits, while the finished branch had this squashed into just two.
mrlukeparry wrote:Yes, there should be barely any conflict (duplication of work) - I've deliberately left implementing anything related to templates so that I hopefully can incorporate what you've done already. The same also goes for the orthographic view calculation of scale and positions and the GUI. In the end templates are not so critical for retaining backwards compatibility if we decide to change.
I've lost track of what position you are in to be honest with the templates. Can you briefly describe what you've been working on? Point out your recent GIT repo? Sorry for being lazy
Aswell, I can perhaps help contribute to what you are doing so we can get it into 0.14 as I don't think my work is ready for the masses just yet
So I've only had a little time to spend on the template selection side of things so far. It's also going to be slow as this involves interacting more with bits of FreeCAD that I've not worked with before. I have a github repo here
https://github.com/j-dowsett/FreeCAD.git and the branch templates_menu_working is what I've got so far - this is definitely not for users, right now it's much more of an experimentation branch, but you're welcome to look Luke (or anyone else as long as you don't expect it to do anything!). [really, this is effectively just a local branch, but that i have on github as I'm working on two computers].
In reality all it has so far is a Drawing preferences page, two preferences for ortho_views that (without yet properly being tested...) appear to work. The preferences page also has two preferences for the not-yet-existent template selection dialog - these currently do nothing (not even save the preference). Oh, I have added an 'All templates...' menu item, but haven't connected it up properly yet, I think there might also be a first approximation dialog .ui file in there, but that's definitely not connected to anything, not in any makefiles etc yet.
It really is more still me experimenting with the different things that might come togethor to give something along the lines of
this, thinking that I'd get that skeleton function in place before coming back here to finalise whether to have tabs in the dialog for MRU or favourites or whatever. I'll carry on in this experimental / learning vein as time allows, but if you want to work on this too then please do - if anything is going to get into 0.14 then I think it's much more likely to come from you!
jmaustpc wrote:Wouldn't it be neater to click I want that
1) boarder style adjusted to suit the paper size
2) this title block - possibly with some auto/manual input fields
3) select the paper standard and size
4) possibly select a language or a title block data input set stored somehow
5) possibly allow arbitrary text water mark insertion
etc. etc. so that FreeCAD generates the template and drawing on the fly.
I'd vaguely had the same thought after finally catching up with a couple of things Luke had said in the same regard. In the short term I'd hoped to simply play with python a little bit and try to get it to create a template of a given size, with a given margin and number of border intervals(? - ie the A, B, C... 1,2,3... bits) and with a given titleblock in a given corner... of course I've yet to manage to put any time into this, and think I'll be looking at the C++ stuff above first.