Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Drawing Format Variable?

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
176 Views, 5 Replies

Drawing Format Variable?

Is there a "getvar" argument I can use to return the version of AutoCAD that
the drawing in question is saved in?
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

acadver == AutoCAD Version
Message 3 of 6
Anonymous
in reply to: Anonymous

That returns the version of AutoCAD currently in use, not the version that
(previously) saved an open file.
___

"PF" wrote in message
news:f17785a.0@WebX.maYIadrTaRb...
> acadver == AutoCAD Version
Message 4 of 6
Anonymous
in reply to: Anonymous

Acad r2004

I believe this is stored in the Registry.

Try this.

(getenv "DefaultFormatForSave")

Conversely, (setenv "DefaultFormatForSave" "12") or other Int STRING should
work.

You need to play with it.

Don


"Nick Fuller @ BFA" wrote in message
news:3D33D4649AF678765A40568E85FC013B@in.WebX.maYIadrTaRb...
>
> Is there a "getvar" argument I can use to return the version of AutoCAD
that
> the drawing in question is saved in?
>
>
>
Message 5 of 6
Anonymous
in reply to: Anonymous

On Tue, 15 Jul 2003 06:08:53 -0700, "Nick Fuller @ BFA"
wrote:

>
>Is there a "getvar" argument I can use to return the version of AutoCAD that
>the drawing in question is saved in?

There is no variable to tell what version someone else has saved it in.
The only variable is which version you have just saved it in.

You need an AutoLISP routine to read the first 5 characters in the file
and compare this to a known list of versions.

--

Regards,

Ian A. White, CPEng
ianwhite@wai.com.au
WAI Engineering
Sydney 2000
Australia

Ph: +61 418 203 229
Fax: +61 2 9622 0450
Home Page: www.wai.com.au
Message 6 of 6
Anonymous
in reply to: Anonymous

the first 5? or 6? "AC1003"

I recalled seeing this format upon Paul correcting me... thanks, Paul.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost