Password Example

Using Programming Languages other than VBA

Sub Example_Password()
		' This example opens a password-protected file, closes it, and then opens another
		' password-protected file.

		ThisDrawing.Application.Documents.Open "C:\MyDrawing.dwg", , "MYPASSWORD"
		'AutoCAD converts all passwords to uppercase before applying them

		ThisDrawing.Close

		ThisDrawing.Application.Documents.Open "C:\MyDrawing2.dwg", , "MYSECONDPASSWORD"
	
End Sub

 

   Comments?