View Full Version : Open Template File directly from Tool Palette
certsenian
2011-05-16, 03:18 PM
I am trying to create a Tool Palette where instead of inserting a block from the tool palette, it opens a specific file. I've created a bunch of drawing templates depending on the type of drawing being created. It would be good if when the tool palette icon is clicked, the drawing actually opens.
Is this even possible?
scott.wilcox
2011-05-16, 06:58 PM
Save your template as a .DWG file, and put them on your palette.
certsenian
2011-05-16, 07:03 PM
That will only insert them as blocks won't it? What I'm trying to do is open them in a different drawing.
scott.wilcox
2011-05-16, 07:14 PM
True.
You can create a macro and put it in a custom command, and put the custom command on the palette.
Something like: ^C^Cfiledia;0;_new;C:/templates/template.dwt;filedia;1;
certsenian
2011-05-16, 07:39 PM
True.
You can create a macro and put it in a custom command, and put the custom command on the palette.
Something like: ^C^Cfiledia;0;_new;C:/templates/template.dwt;filedia;1;
The file I am trying to open is XXXX-A000. There will be other drawing files as well so once I figure this one out, I should be able to apply the same code to the others.
I was getting an error because of the "_" after "0;_" so I have deleted it. This is what I now have as the command string: ^C^Cfiledia;0;_new;r:/blocks/sheets/templates/XXXX-A000.dwt;filedia;1;
I get an error message saying:
Command:
Command: filedia
Enter new value for FILEDIA <1>: 0
Command: new
Command: r:/blocks/sheets/templates/XXXX.dwt
Unknown command "DWT". Press F1 for help.
Command: filedia
Enter new value for FILEDIA <0>: 1
Command:
It then asks me for a template file name with the "acadiso.dwt" as the pre-selected file. Any thoughts?
scott.wilcox
2011-05-17, 09:27 PM
Perhaps your command for new has been remapped.
Try putting a period and underscore (._) between the semicolon and new, like so:
FILEDIA;0;._new;
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.