need a routine lisp for export a data from excel to autocad..
here is the sample from excel files..
here is the result from excel
please help me.
need a routine lisp for export a data from excel to autocad..
here is the sample from excel files..
here is the result from excel
please help me.
donno how to dis
but i'll do my best
Check under this link: http://asmitools.com/Files/Programs.html
The tabcoord.lsp creates a table which you can export to Excel. Or you could modify it to rather save to CSV file. If you want it directly into XLS you'll need to look at Excel's ActiveX interface.
Edit ... sorry scratch that ... read too fast ... you want it the other way![]()
Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!
Oliver,
This one covers importing and extracting 3D points between Excel and AutoCAD.
http://autolisp-exchange.com/Forums/.../F3T5P4.htm#31
Here's the link for the latest version of GetExcel.lsp:
http://web2.airmail.net/terrycad/LISP/GetExcel.lsp
Oliver,
Based upon the format of your Excel spread sheet in your first post, the following code will work. Change the Excel filename and path to the filename and path you used. Load GetExcel before you run the example. i.e. (load "GetExcel")
Code:(defun c:TempPts (/ Row@) (GetExcel "C:\\Temp\\TempPts.xls" nil nil);<-- Change Excel filename and path here (command "_PLINE") (foreach Row@ (cdr *ExcelData@) (command (list (atof (cadr Row@)) (atof (caddr Row@)))) );foreach (command "_c") (princ) );command
Dear Oliver,
See my DDE solution in DDE-LINES.xls.
See for DDE method (Dynamic Data Exchange method):
http://forums.augi.com/showthread.ph...ghlight=hofcad
http://www.theswamp.org/index.php?topic=12348.0
Or for scripting
http://www.thecadgeek.com/blog/2007/...es-with-excel/
http://www.lazydrafter.com/autocad-t...ts-with-excel/
http://www.cadforum.cz/cadforum_en/qaID.asp?tip=6606
http://www.geocities.com/flores_2793...net/Points.xls
Regards HofCAD CSI.
Last edited by hofcad; 2010-01-20 at 05:35 PM.