Jump to content

Is there any lisp or way to convert an Excel table to an AutoCad drawing instead of an AutoCad table?


Recommended Posts

Posted

I want to convert an Excel table to an AutoCad drawing made of lines and texts instead of linking an Excel file or converting it to an AutoCad table. Thanks in advance.

Posted

If you were to consider third party add-ons, DotSoft's XL2CAD will place an Excel table in your drawing as a bound collection of Mtext, Polylines, and Hatches.  The appearance matches the spreadsheet and it is still linked so that if the spreadsheet changes, it updates without interaction on the next drawing open.  In the event you didn't want updating an instance can be locked.

  • Like 1
Posted

Once you explode a cad table then it would be a bunch of lines and texts.

  • Like 2
Posted

Just me but exploding a table into text and lines I think is a backwards step.

 

In simple terms you can read a selected excel range and create a table, the dotsoft solution is obviously more involved matching the excel workbook.

 

This is select range for anyone.

 

(setq UR (vlax-get-property  (vlax-get-property myxl "ActiveSheet") "UsedRange"))
(setq CR (vlax-get-property UR "CurrentRegion"))
(setq RADD (vlax-get-property CR "Address"))
(setq cnt (vlax-get-property CR  "Count"))

 

 

 

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...