TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: domenicomaria on March 31, 2023, 04:03:10 AM
-
Is it possible to create DWGs in a previous version with the wblock command?
For example I use the Acad 2022 version
and I want to create DWGs in the ACAD 2000 version
with WBLOCK ...
... is it possible?
-
I think it's not possible...
Instead 2 steps :
1. WBLOCK
2. OPEN -> SAVEAS -> A2000 format
-
:-(
-
For Acad >= 2007 look for vla-Put-SaveAsType
-
@Marco
I don't want SAVEAS . . .
I want that WBLOCK creates a DWG in a previous version
I add
(setenv "DefaultFormatForSave" "12")
before WBLOCK
but the final DWG format, is the current version
and not ACAD2000 ("DefaultFormatForSave" = "12")
-
And before use WBLOCK, I added
(vla-put-saveastype (vla-get-opensave (vla-get-preferences (vlax-get-acad-object) ) ) ac2000_dwg )
instead of
(setenv "DefaultFormatForSave" "12")
. . .
but nothing is changed !
-
(vla-put-saveastype (vla-get-opensave (vla-get-preferences (vlax-get-acad-object) ) ) ac2000_dwg )
Works... tested in AutoCAD 2013
-
thank you Marco
I will give it a try
(again)
... monday !
ciao
-
(vla-put-saveastype (vla-get-opensave (vla-get-preferences (vlax-get-acad-object) ) ) ac2000_dwg )
Works... tested in AutoCAD 2013
1
2
(:SS-MAKE-PREVIOUS- ss)
ss
full-dwg-file-name
(setq active
-doc
(:ACTIVE
-DOCUMENT
) ) )
)
)
)
)
3
Marco, it seems that it does not work !
-
Have you tried wblock command?
-
Have you tried wblock command?
Yes.
With wblock command, it works !
Thank you.
-
Have you tried wblock command?
Yes.
With wblock command, it works !
Thank you.
Your question: Is it possible to create DWGs in a previous version with the wblock command?
-
Yes!
"Is it possible to create DWGs in a previous version with the wblock command?"
this is the right way to express the concept!