change Mechanical Save as default version programmatically

change Mechanical Save as default version programmatically

Michael_Zindath
Explorer Explorer
330 Views
2 Replies
Message 1 of 3

change Mechanical Save as default version programmatically

Michael_Zindath
Explorer
Explorer

Hello,

I would like to set the default save version to a specific Version via lisp.

When I try to access this through (getenv "DefaultFormatForSave") I always get 64 for mechanical versions 2018-2025. Only when going lower then that I see a change. So this environment variable seems to only track the Major dwg revisions and not mechancial versions.

 

Where is this information stored and how can I change it?

 

Michael_Zindath_0-1731430268433.png

 

 

0 Likes
331 Views
2 Replies
Replies (2)
Message 2 of 3

pendean
Community Legend
Community Legend
Dumb question if I may: is this a constant need to change on the fly while in DWG file?

In Plain AutoCAD... 64 represents the common DWG format changed between versions 2018-19-20-21-22-23-24-25.
That should change for 2013-14-15-16-17
then again for 201-11-12
and so on.

MECH year-versions are ignored.
0 Likes
Message 3 of 3

Michael_Zindath
Explorer
Explorer

Fair question.
I would like to ensure that the mechanical version is set correctly for all my collogues. So that normal open and save operations keep the desired ODA mechanical Version.

0 Likes