×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Batch logo Conversion of drawings Help me out please :)

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

RE: Batch logo Conversion of drawings Help me out please :)

Are you new to CAD in general?

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 :)

(OP)
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

RE: Batch logo Conversion of drawings Help me out please :)

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

RE: Batch logo Conversion of drawings Help me out please :)

(OP)
Thanks Tcarpenter1! I'll try it and see how it goes....need to look into lisp routine now.  :D  

RE: Batch logo Conversion of drawings Help me out please :)

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources