• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

automatism to open, zoom extensions, save and exit with autocad 2008

  • Thread starter Thread starter zambia
  • Start date Start date

zambia

Guest
Bye to all,
I would like to create a macro or something like this, in autocad 2008, which sequences these commands:

ask the folder where there are files to open
ask the destination folder
every time you open a file in the folder you have to do a "zoom extension", save the file in autocad version 2007 and close the file.

I get thousands of files to convert and I don't want to go crazy and do it all in hand... Can anyone help me?

thanks for the attention

Hi.
 
I opened the excel but the keys in office 2007 do not work, I think it is a compatibility problem, later I install 2003 and see if I can with that.

I don't know him. :frown:
 
Why don't you use dwg true view with the appropriate batch file conversion tool?
should do what you ask, plus it can also purge the file and set the printer to "no one". . .
 
try before claiming that you can not.
1) to save in 2007 format set autocad in tools/options/open and save as autocad2007.
2) the script generator allows you to open files even in different directories and how many you want.
3) there are examples listed, use the parts you need.

something vba I know, the file in excel is made in vba, has no password protection and you can adapt it as you think.

bye

p.s.: I responded to tristan and I realized that the discussion is zambia, I apologize.
 
in office 2007 works, I just had to remove macro protection.

for now to overcome the problem of not being able to select the destination I will live using temporary workbooks. . .
 
at the cost of repeating myself.. .
Why don't you try with dwg true view that can make you "on site" conversion? ?
 
downloaded trueview, does everything except the "zoom extension". with about 4000 files at a time goes into crisis in the selection, I have to try to make the list and see how it reacts.
 
I did the script with excel, but I only tried the first file, where did I unpack?
Attached, put xls and scr:frown:
 

Attachments

Don't demote, I'll rearrange the excel file that I tested with autocad 2010, I created 4 dwg appointing them as your first 4 and the script works perfectly.

bye
 

Attachments

Don't demote, I'll rearrange the excel file that I tested with autocad 2010, I created 4 dwg appointing them as your first 4 and the script works perfectly.

bye
Hi.
I downloaded the file and instead of doing the script for 2006 I did "other" and now it works. I thought "other" was for previous versions.

Now it's half an hour that's trimming files... Thank you very much.

while I'm there, I ask you a question to better understand the "purge" command. I saw in the predefined scripts that is executed, then it gives "all" and then "n". I usually have to make it turn 3 or 4 times in autocad the command to completely clean a design. By doing this I can clean it in one shot?
 
the purge command with dialog box has the possibility not to purge the nested elements
launching it in "command row" mode loses this function
 
This is an old discussion, sorry if I add, I solved by creating a new autocad command with button and this syntax:

"c^czoom" and "elimina tu" n _qsave close

practically when I snap the drawing button is displayed in zoom extension, then it is cleaned by all unused, saved and closed entities... convenient because it executes 4 commands very fast with only one click and the designs are always saved with zoom extension so in opening you always have a preview of the whole design (and so also colleagues stop saving the designs with random zoom:wink:)

the version without closing the drawing is of course this:

"c^czoom" and "elimina tu" n _qsave

convenient to give a clean occasionally to the design without going out.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top