Templates

Templates

Anonymous
Not applicable
165 Views
2 Replies
Message 1 of 3

Templates

Anonymous
Not applicable
I have a VBA program that creates several drawings using templates. At the
end of the routine it saves all of the drawings to a separate directory as
.dwg files. However, when the user trys to save the drawings after the
program has terminated, it defaults to save as a .dwt file in the template
directory.

Any ideas as to why it does this?
0 Likes
166 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Hi Keith,
Are you using code similar to this:

Dim objDwg As AcadDocument
Set objDwg = Application.Documents.Add("acadiso.dwt")
objDwg.SaveAs Application.Path & "\templateexample.dwg", acNative

Randall Rath
VB Design
http://www.vbdesign.net/cadpages/
0 Likes
Message 3 of 3

Anonymous
Not applicable
I am new to the VB world but do think the reason for your problem is because
you are opening your drawing as a dwt and not inserting it. I would
suggest saving your template as a dwg prior to using it. If not running a
file save as dwg at the end of your code. Hope this helps.
Ariel
"Keith" wrote in message
news:B7AB2067C08492C51A7FD91DB2BA05A7@in.WebX.maYIadrTaRb...
> I have a VBA program that creates several drawings using templates. At
the
> end of the routine it saves all of the drawings to a separate directory as
> .dwg files. However, when the user trys to save the drawings after the
> program has terminated, it defaults to save as a .dwt file in the template
> directory.
>
> Any ideas as to why it does this?
>
0 Likes