Jump to content

Recommended Posts

Posted

Hi, I'm trying to copy excel tables into autocad.
I've seen several discussions on the subject but I haven't found any easy solutions to what I would like to do.

The starting excel tables are already very clearly formatted (columns width, rows high, merged columns, texts, colors, justifications, etc.).

The best graphic result is to copy and paste them as an image, but obviously this does not allow subsequent modifications.

I tried to follow the insertion methods from Draw --> Table and selection of the table to connect, but I don't get the desired graphic result and I'm not interested in having a connection with the source table.

I tried to insert it as an OLE object, but it still seems to be an image, maybe I'm doing something wrong...

I would like to insert it in order to obtain the graphics most similar to the starting excel table and if possible, explode it to work directly on lines, polylines, texts and colors by drawing normally, I do not need it to be an "Autocad Table".
Is it possible?

Thanks in advance

Posted

Did you try copy-paste special?

Select the region you need and copy it to the clipboard. In AutoCAD: right-click, clipboard, paste-special. Choose "AutoCAD object" and insert the table in the drawing. You can explode it if that's what you wish...

Posted

oh thanks! I didn't know that!
the formatting is not pasted optimally but it is the most convenient solution and similar to what I need!
Thanks!

  • Thanks 1
Posted

getting cell information from Excel is not a problem via Acad or Brics cad also Libre Calc. You can get columnwidth's using cad.  Alan Excel library.lsp

 

(vlax-get (vlax-get-property  (vlax-get-property myxl "ActiveSheet") "Range" "A1") 'columnwidth)

 In this attached is lots of functions you can use not actual code. One function is just get the actual used range in a spreadsheet. So that makes the double loop required for rows & columns.

 

So can make a table then read all the cells.

 

What other properties of a cell are you after ? Mybe post a excel.

 

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...