Use VBA in AutoCAD to add layout template
Use VBA in AutoCAD to add layout template
(OP)
I can easily add a layout to an AutoCAD drawing with
ThisDrawing.Layouts.Add "Sheet1"
But what I really need to do is add a Layout From Template. Does anybody have any idea how to do that?
ThisDrawing.Layouts.Add "Sheet1"
But what I really need to do is add a Layout From Template. Does anybody have any idea how to do that?
RE: Use VBA in AutoCAD to add layout template
Sub Example_New()
' This example creates a new drawing based on the template ansi-a.dwt.
' Note: The path to the template file is included with its name. Adjust
' this path for your installation location before running this example.
Dim templateFileName As String
templateFileName = "c:\AutoCAD\template\ansi-a.dwt"
ThisDrawing.New templateFileName
End Sub
RE: Use VBA in AutoCAD to add layout template