Batch logo Conversion of drawings Help me out please :)
Batch logo Conversion of drawings Help me out please :)
(OP)
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
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





RE: Batch logo Conversion of drawings Help me out please :)
Sounds like a task for a script file.
http://www.theswamp.org/index.php?topic=15168.0 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.
RE: Batch logo Conversion of drawings Help me out please :)
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
RE: Batch logo Conversion of drawings Help me out please :)
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
RE: Batch logo Conversion of drawings Help me out please :)
RE: Batch logo Conversion of drawings Help me out please :)
(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.