Jump to content

AutoCAD to excel


Ajmal

Recommended Posts

AutoCAD to excel

From AutoCAD I will click one text and after that for I will measure one length

That both things I need to excel

1.       I will click one text that things I need to come one row in excel at the same time

2.       I will measure one length that I need to come on next row

3.       This thing I will continue

Actually, this is for quantity take off from AutoCAD to excel

 

 

Please help me

 

 

1203511777_MODEL-gif.gif.bef870835efabf8a5491db07334216bb.gif602063738_AutoCADtoexcel.png.bb3be2bc98e8838cb9311db996035dad.png

 

 

Edited by Ajmal
Link to comment
Share on other sites

Interesting using Google

 

Autocad to excel 36 million.

Autocad export attributes 587,000

 

devitg this may be a useful example to be saved in the downloads area.

 

For Admin have suggested before need a excel subject catergory this would save lots of duplication.

Link to comment
Share on other sites

On 17/10/2019 at 19:38, devitg said:

I got it, It is a must the xlsbe online?. or the LISP could give a XLS or a CSV , after you m end  pick .

 

if you can make active excel that will okey. 2 types of data same comment..

Link to comment
Share on other sites

Here is a simple answer uses pick point for distance and a csv file which you can open in excel. 

 

Change D:\acadtemp to a directory where you want the csv file to go to.

 

(defun c:ajmal ( / fo txt pt1 pt2)
(setq fo (open (setq fname "D:\\acadtemp\\ajmal.csv") "w"))
(write-line "Size,Length" fo)
(while (setq tent (entsel "Pick text"))
(setq txt (cdr (assoc 1 (entget (car tent)))))
(setq pt1 (getpoint "Pick 1st point for length"))
(setq pt2 (getpoint "Pick 2nd point for length"))
(write-line (strcat txt "," (rtos (distance pt1 pt2) 2 0)) fo)
)
(close fo)
)

 

Link to comment
Share on other sites

Ah yes the answer is the $100 question, only joking, its not straight forward but it is achievable and again there are just so many answers to your question out there  that do just that pick something in Autocad and put an answer in a Excel cell.

 

This is why the csv is offered first as its simple. 

 

The excel answers always seem to come back with more requests for enhancements people like me offer solutions for free here, so Cadtutor should not be used as a I want for free. Start with getexcel.lsp.

 

Again GOOGLE search here also, it may take say an hour but you will find what you want it is definitely out there.

 

 

 

 

  • Like 1
Link to comment
Share on other sites

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