Changing internal name when editing templates

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules
Always indicate Operating system, QCAD version
Attach Drawing files, Screenshots
Post one question per topic.
Post Reply
CJCUK
Newbie Member
Posts: 4
Joined: Tue Apr 01, 2014 5:50 pm

Changing internal name when editing templates

Post by CJCUK » Tue Mar 07, 2017 8:24 pm

I've just edited a template, let's call it 'Imp-A3' which was listed in the Open From Template dialogue as 'Imp-A3'. Changed a number of things in it and saved it as 'Imp-A4' and then closed it.

On creating a new drawing by using Open From Template the dialogue now shows 2 templates with a description of 'Imp-A3', one, the original with a file name of '...templates/Imp-A3' and a second (my one, with changes) with a file name of '...templates/Imp-A4' :cry:

How can I alter the internal description that is displayed in the list of templates. Creating more templates I could end up with a whole bunch all with the same description in the dialogue box.

weldman
Registered Member
Posts: 1
Joined: Thu Jun 28, 2018 9:30 am

Re: Changing internal name when editing templates

Post by weldman » Thu Jun 28, 2018 9:32 am

Hi All
Windoz 10, most recent version of QCAD Pro
I have the same question.
How do we save unique names for our templates that are accessible from the template manager. It seems basic to me but can't find out how.

Thanks in advance

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 2097
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Changing internal name when editing templates

Post by Husky » Thu Jun 28, 2018 5:52 pm

Hi weldman - welcome to the QCAD Forum.
weldman wrote:
Thu Jun 28, 2018 9:32 am
How do we save unique names for our templates that are accessible from the template manager.
Just "Save As" in the template folder with an informative name like "Metric template with DIN A4 Layout Block.dxf" and the "open template" dialog will show you this ...

Husky-2018.06.28-02.png
Husky-2018.06.28-02.png (29.98 KiB) Viewed 496 times
Work smart, not hard: QCad Pro

User avatar
andrew
Site Admin
Posts: 5552
Joined: Fri Mar 30, 2007 6:07 am

Re: Changing internal name when editing templates

Post by andrew » Fri Jun 29, 2018 12:27 pm

A few template files contain an internal title which is stored as a property in the file. You must have copied one of those.

To remove the property, proceed as follows:
- Load your library item file.
- Misc > Development > Script Shell
- Copy this line into the script shell input field (to the right of ">")

Code: Select all

getDocument().removeVariable("Template/Title")
- Hit enter
- Save your file

Post Reply

Return to “QCAD 'How Do I' Questions”