Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with vba, dvb in Autocad

Status
Not open for further replies.

loul69

Mechanical
Joined
Jul 15, 2004
Messages
8
Location
FR
Hi, i've a problem in Autocad vba.
Hope someone can help me.
Here is what i d like to do.
I need to write a macro in order to open all *.dwg in a directory, after to put object in view top and to save and close files. Really simple in apparence but i only know vba in excel....

Thanks a lot
 
Hi,

which AC version are you running?
I would write a script, download "Script Pro" and run...

Lothar




ADT 2004
ACAD 2002
 
Hi thanks i m using Autocad 2000i
Thanks for ur help
 
But i can use another Autocad if necessary.
Thank u

Bye
 
loul69,

Code:
_tilemode
1
_-view
_top
_qsave
_close

Is this ok? put the text in an editor ->save as Name.scr -> open ACAD -> command "_script"
That's for one file...

Lothar

ADT 2004
ACAD 2002
 
Yes it s really great thank u, but my biggest problem is that i have many files. Is there a way to do a loop on each part???

Thanks a lot
 
Hey,

I have posted a link:
SKRIPTPRO
I think it will run with 2000i.
...3. ScriptPro takes AutoCAD scripting to a new level with an easy-to-use interface, logging, reusable project files, enhanced scripting with new keywords and utilities, and robust error recovery. Using ScriptPro, you can apply a set of commands to multiple drawings by simply specifying a script file and the list of drawings that you would like to apply the script to. ...

Lothar

ADT 2004
ACAD 2002
 
Allas no, it won t work with acad 2000i.....don t u have an idea in vba or in lisp???
Thanks really for ur help
 
If you know VBA, you might be able to learn how to solve your "macro" problem by viewing examples of other people's code.

has some examples that I have found helpful.

Good luck!

M.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top