Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Batch logo Conversion of drawings Help me out please :)

Status
Not open for further replies.

tamahome77

Mechanical
Jun 13, 2007
3
Hi everyone, I'm new to AutoCAD 2007.

I have about 900 drawings. They all have the same logo on the top left of the drawing and I want to change all the logo on the 900 drawings to a different logo. Is there a way to change 1 logo on a drawing and AutoCAD will convert the rest of the other drawings to the other logo instead of manually opening each file and changing each one? Please Help me out! Thanks


-Tamahome77
 
Replies continue below

Recommended for you

Are you new to CAD in general?

Sounds like a task for a script file.

for some help with script files.


You’ll need a lisp for this part
- - - - - - -
First you’ll need to determine if the what exactly the old logo is, (bmp, block, just entities?) Insert the new logo (block or bmpfile) and then erase the old one.
- - - - - - -


Basically, figure out the lisp routine to replace the logo. Use the lisp file to call the lisp routine in each drawing. You may want to add a save drawing command in there somewhere.
 
Thanks Atook for the help! :D

Yes, I'm new to AutoCAD in general. I've been drawing in AutoCAD for a few months and now trying to learn the technical aspects of AutoCAD. The logo i'm using is a block.

I would like to run a script that will:
1. open each file in a folder
2. delete the old logo block
3. paste the new logo block onto the specified location
4. save and overwrite the older drawing file.
5. Open the next file in the folder and repeat step 1 again.

Looks like it's time to learn how to do a little bit of programming. I'll look into that link you gave me and get some help on script files. Thanks. Any more help from anyone else would be much appreciated ^^.

-Tamahome77
 
Hi Tamahome77,

Use autodesk's script pro to help you with the scripting part (steps 1, 4, and 5 in your list) - then all you'll need to do is plug in your lisp routine. ScriptPro

HTH
Todd
 
Thanks Tcarpenter1! I'll try it and see how it goes....need to look into lisp routine now. :D
 
Since it is a block you can also modify your acad.lsp file to include something this:

(DEFUN S::Startup ()
(command "insert" "logo=NewLogo" "y" "0,0" "1" "1" "0" "" "" "" "" "" "" "" "")
(command "zoom" "e")
(command "erase" "l" "")
(qsave)
(close)
(princ)
)

Then open up all your drawings using Open and select all, or a script that opens all drawings in a folder of folders (search - there are lots). This should work as long as your new logo drawing is in the Acad search path.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor