Hi, every body!
I have a drawing with dimensions and numbers.
Please help me a lisp Select Dimension and Number after export to Excel.
Thank you very much!
Thank Dipesh Kalasaria very much!
But I run lisp is error.
Command: td
; error: bad argument type: VLA-OBJECT nil
Please, help me.
P/S:
You can edit help me Select by windows as Pick? Thank you.
Good luck for you!
Thank Dipesh Kalasaria,
I'm try and ok.
But I have to repeat to much command "td".
Please, help me edit select by windows. Select (save temp), then finish export to excel.
Thank you very much!
Good luck for you!
(defun c:td(/ ENT1 ENT2 PRE SS XLACELL XLAPP)
(setq xlApp (vlax-get-object "Excel.Application")
xlACell(vlax-get-property xlApp "ActiveCell")
pre 0 ; SET YOUR DIMENSION VALUE PRECISION HERE
ss(ssget '((-4 . "")))
)
(if (> (sslength ss) 2)(progn(princ"\nMore than two object selected...")(princ)(exit)))
(setq ent1 (vlax-ename->vla-object (ssname ss 0))
ent2 (vlax-ename->vla-object (ssname ss 1))
)