A
Bquick61 wrote:Now that you mention it, doing it that way could make it feel laggy, especially when the menu was full of templates. How about then having a radio button, check box, clickable field, whatever that would grab the metadata on demand. That way, none of the info is gathered until it is requested. Would that be workable?
These ideas seem to work, think they work something like:ulrich1a wrote:I like the idea of the metadata. Could the scanning of all available templates not be done in a new preferences dialog?
A - Open the dialog for 'All templates', decide that you want to see additional information so click a button which parses the available templates and fills in the extra column.
B - Go into the preferences, click a button, and it parses available templates looking for additional information, compiles all of this into a text file which is then used to populate the additional info for templates each time the 'All templates' dialog is opened.
Of course a combination of these could be applied, have the button that causes parsing of the files in the 'All templates' dialog (A) but rather than just populating the column there and then have it also save the info into a text file ready for next time (B)
I don't see why this shouldn't be kept. I imagine it'd just remain as 'A4' or 'A', whatever denotes the paper size. I've not really used this much (I've hardly ever actually created drawings for use...), I think it doesn't remember between sessions which was the last paper size used? It always shows A3 for me (upon restarting FreeCAD) even if I used A4 last? If we end up with an MRU list then I imagine this should simply be the last used regardless of restarting FreeCAD?quick61 wrote:Remembering that somewhere in there we still need to edit in the one or 2 characters that are used to generate the icons on the fly. If that feature is going to be kept, I I'd vote for it to be.
This makes sense, have it look for templates in both /Mod/Drawing/Templates and in a second location specified in preferences. Just in case of duplicates, maybe have hint text in the All Templates dialog display the full path of a template (or a final column on the right).ulrich1a wrote:There should also be a field for a custom template folder. When FreeCAD will be installed from a Distribution, the folder for the supplied templates may not be writable for every one.
Putting aside a most-recent list. If the dropdown menu were to list all templates of a given standard... would that be fixed in a preference (ie, always show me ISO series regardless of what I used last), or should it show the standard that corresponds to whichever template was used last? Underneath these both equate to the same thing, a preference specifying which standard to show, but it's just a question of whether this updates automatically if a different standard is selected or if it should require the user to actively go into preferences to change this. I suppose if this was a 'fixed' preference then it would be possible to incorporate someway of changing it into the All Templates dialog ('Set as default template series' checkbox or something).
Do you mean in the 'All Templates' dialog? Or in the preferences? I think maybe this falls into Luke's territory, I'm not sure but possibly he's thinking about things like this with his new drawing workbench...ulrich1a wrote:There could also be a field for the users name. So every time a new drawing is created, the users name could be automatically filled in? I understand this will be an additional task. But this is, what comes in my mind.
Sorry, I hadn't read this properly the first time, I see we were saying essentially the same thing. However I think it's simplest if anything beyond size and orientation in the name goes at the end. Simply for extracting info from the filename, I think in code it'd be nicer to work from the beginning... 1st bit = size, 2nd bit = orientation, optional 3rd bit...quick61 wrote:As to the actual naming scheme, simple is always better. I'm thinking something like SeriesInfo_Size_Orientation.svg. Where SeriesInfo could be anything and would show in the All templates.. Additional info view for easy identification . Size would be 1 or 2 characters that would be displayed on the icons in the short list, along with landscape / portrait as they do now.
A4_Portrait.svg
A4_Portrait_modified.svg
whereas if the maybe-some-more was at the beginning you might have
A4_Portrait.svg
modified_A4_Portrait.svg