PDA

View Full Version : Looking for MISC Strings


kgrant.115222
2008-03-04, 08:51 PM
I have attached a couple pictures to show what strings i am looking for. Im trying to finish up this LISP that will set these variables, and i just cant seem to find a couple of strings.

Also, i havent searched too hard for this yet but i know there is way to save a copy of these from the server to the local machine.

Thanks

Opie
2008-03-04, 09:39 PM
SaveAsType property of the OpenSave object property of the Preferences object property of the ACAD object.

System Variable SAVETIME

QNewTemplateFile property of the Files object property of the Preferences object property of the ACAD object.

You will need to use Visual LISP or VBA to access the object properties.

'gile'
2008-03-04, 09:51 PM
Hi,

For the first question (the default dwg format for save), it's an environment variable called:
DefaultFormatForSave
You can get it with the getenv funtion ant change it using setenv. The values (integers) have to be specifies as strings for these functions:

"12" for AutoCAD 2000 DWG (*.dwg)

"13" for AutoCAD 2000 DXF (*.dxf)

"14" for AutoCAD 2000 Drawing Template File (*.dwt)

"24" for AutoCAD 2004 DWG (*.dwg)

"25" for AutoCAD 2004 DXF (*.dxf)

"26" AutoCAD 2004 Drawing Template File (*.dwt)

"36" for AutoCAD 2007 DWG (*.dwg)

"37" for AutoCAD 2007 DXF (*.dxf)

"38" for AutoCAD 2007 Drawing Template File (*.dwt)

For the automatic save time, it's the SAVETIME sysvar.(you can also use the AutomaticSaveMinutes environment variable)