AutoCAD Electrical General Discussion

AutoCAD Electrical General Discussion

Reply
Contributor
Nicolas.L
Posts: 13
Registered: ‎12-05-2012
Message 1 of 2 (266 Views)
Accepted Solution

[VBA] Creating a new drawing using a .dwt model

266 Views, 1 Replies
12-11-2012 12:23 AM

Hello again,

 

I would like to know if someone know how it is possible to create in ABA a new drawing using a .dwt existing ?

 

Regards

 

Nicolas

The solution is to use use the following code:

 

Set AcadDoc = AcadObj.Application.Documents.Add("C:\Path_of_the_gab\Name_of_the_gab.dwt")

 

Regards

 

Nicolas

Contributor
Nicolas.L
Posts: 13
Registered: ‎12-05-2012
Message 2 of 2 (258 Views)

Re: [VBA] Creating a new drawing using a .dwt model

12-11-2012 06:41 AM in reply to: Nicolas.L

The solution is to use use the following code:

 

Set AcadDoc = AcadObj.Application.Documents.Add("C:\Path_of_the_gab\Name_of_the_gab.dwt")

 

Regards

 

Nicolas

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD Electrical Category!

The AutoCAD Electrical forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.

Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.