QNewTemplateFile Example

Using Programming Languages other than VBA

Sub Example_QNewTemplateFile()
		' This example uses a template file named MyTemplate.dwt to
		' set a default template for the QNEW command. 
		' You should change the example to use
		' a template file on your computer.

		Dim MyTemplate As IAcadPreferencesFiles2
		Set MyTemplate = AcadApplication.Preferences.Files
		MyTemplate.QNewTemplateFile = "C:\MainTemplate.dwt"

End Sub