Dr.Lube
Guest
Hello.
I made a small program that assigns to x and y the coordinates of a point that I would then insert in cad.
being the point derived from a processing (there is a hole in that cell), cannot take the value. How can I do that?
grazie, dennis
I made a small program that assigns to x and y the coordinates of a point that I would then insert in cad.
being the point derived from a processing (there is a hole in that cell), cannot take the value. How can I do that?
Code:
(defun c:pin (/ x y xy)
(vl-load-com)
(setq xl (vlax-get-or-create-object "excel.application"))
(setq x 10) ;mi serve solo for il debug
(setq y 5) ;idem
(getexcel "c:\\users\\studio 3\\cobiax\\xls\\inerzia.xls" "inerzia" nil)
(setq x (getcell "k6") ; problem: in questa cella ho una formula e non trova quindi il valore
(setq y (getcell "l6") ;problem: in questa cella ho una formula e non trova quindi il valore
(setq xy (list x y))
(command "point" xy \r)
(princ)
)
grazie, dennis