Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Load template for autocad with vba program

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Demasure1
1771 Views, 1 Reply

Load template for autocad with vba program

Hello,

 

How can i load a template into AutoCAD with vba.

the name is Template.dwt

 

I hope somebody can help me

Thanks

1 REPLY 1
Message 2 of 2
Alfred.NESWADBA
in reply to: Demasure1

Hi,

 

you can create a new drawing based on your template by

    ThisDrawing.Application.Documents.Add("myTemplateName.DWT")

(>>>details<<< and look to method "Add").

 

HTH, - alfred -

BTW: there is a special forum for VBA with AutoCAD >>>there<<<

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost