SDI モードで新しくドキュメントを作成します。
サポートされているプラットフォーム: Windows のみ
VBA:
RetVal = object.New(TemplateFileName)
タイプ: Document
このメソッドが適用されるオブジェクト。
アクセス: 入力のみ
タイプ: 文字列
テンプレート ファイルの絶対パスとファイル名。
SDI モードで作業中の場合にのみ、Document オブジェクトから New メソッドを呼び出します。MDI モードで作業中の場合は、Documents コレクションに Add メソッドを使用して新しい図面を作成してください。
VBA:
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"
    
    If AcadApplication.preferences.System.SingleDocumentMode = True Then
        ThisDrawing.New templateFileName
    Else
        ThisDrawing.Application.Documents.Add templateFileName
    End If
End Sub
Visual LISP:
Not available