- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm trying to figure out why a command I made will work sometimes and sometimes will not..I suspect a pt that is not clearing from an other command, but i made sure to include all the variables on the defun line..This is the only function that has this behavior (out of 33)
Maybe I don't use the cad,cadr,caddr like I should?
(defun c:base01 ( / pt1 pt2 pt4 a1 a2 a3 a4 );base de ciment fenetre
(command "-layer" "make" "00" "" )
(command "ucs" "w" )
(setq pt1 (getpoint))
(setq pt2 (list (car pt1) (cadr pt1) (- (caddr pt1 9))
(setq pt4 (list (car pt1) (cadr pt1) (- (caddr pt1 2))
(command "solidedit" "f" "c" pause "" pt1 pt1 "x" "")
(setq a1 (entlast))
(command "extrude" a1 "" "-2" )
(setq a2 (entlast))
(command "erase" a1 "")
(command "isolateobjects" a2 "" )
(command "solidedit" "f" "o" pause "all" "" "1" "" "" )
(command "unisolateobjects" )
(command "slice" a2 "" "xy" pt4 "0,0,2000" )
(setq a3 (entlast))
(command "slice" a3 "" "xy" pt1 "0,0,-1000" )
(setq a4 (entlast))
(command "chprop" a4 "" "layer" "ciment" "")
(command "-layer" "make" "00" "" )
(princ)
Solved! Go to Solution.