• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Electrical

    Reply
    Contributor
    Posts: 13
    Registered: ‎12-05-2012
    Accepted Solution

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

    152 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

    Please use plain text.
    Contributor
    Posts: 13
    Registered: ‎12-05-2012

    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

    Please use plain text.