Programmatically setting the default file save type.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I am writing an external script, more just for the experience than anything else, to alter my profile settings within AutoCAD 2022 Mechanical. I am connecting through COM (this is obviously Windows) and able to access everything just fine. But I am not able to get the default file version to change. I have been using the "SaveAsType" property listed here. I can retrieve an integer (64) that corresponds to my current default file version. But changing the integer, although completes successfully, is never reflected within the options screen in AutoCAD or the "Save" dialog screen.
This got me thinking so I went to see if altering it in LISP gave different results, but it did not.(GetEnv "DefaultFormatForSave") returns 64 (2018 DWG) but (SetEnv "DefaultFormatForSave" "66") should change the type to 2018 DWT, but it does not.
After further investigation I found that both my external COM script and changing the environment variable through LISP work in the Vanilla profile, but not in Mechanical.
So my question is, is there a way to use the "SaveAsType" property and/or "DefaultFormatForSave" in Mechanical?