×
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

Macro to insert DWG

Macro to insert DWG

Macro to insert DWG

(OP)
I would like to know how to have Excel insert an AutoCAD drawing into a worksheet depending on the part name typed into a reference cell.

I have hundreds of different part numbers/names. I would like the worksheet to be a template to be used for different jobs with different parts for different clients.

Assume that the name of the part will be the file name of the drawing and that all drawings will reside in the same folder.

Thanks in advance for any pointers.

RE: Macro to insert DWG

The only way I think this can be done is to first use a script in AutoCAD to export the image as a metafile or .jpg
then in excel use a VBA cell event to import the image.

Sorry not sraight forward an will require a small amount of both VBA programming and AutoCAD scripting/AutoLISP

RE: Macro to insert DWG

Another option is to purchase a very inexpensive program called Better WMF from Furix.  It works by installing an .arx application file on the AutoCAD directory.  From the command line, you type "BWMFOUT", and the program will export a .wmf to where ever you want.  The file can then be inserted into Excel. Very good resolution!!!

http://www.furix.com/

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