Hello,
I have a problem since I work with the 2010 version of Civil3D. Previously, this routine worked well, but since the 2010 version, I have a problem with the trim in the center of the circle. At this point, the routine stops and a selection window appears.
Can you help me work around this problem?
Here is the lisp program.
Thank you.Code:(DEFUN c:bfo (/ p1 lay) (command "ucs" "w") (command "osnap" "NEA") (setq P1 (getpoint "\n point the CONNECTION TO WATER SUPPLY > ") LAY (cdr (assoc 8 (entget (ssname (ssget P1) 0)))) AQU (ssname (ssget P1) 0) ) (prompt "\n Place the standpipe > ") (command "circle" P1 (* #SC# 1.04)) (setq CI (entlast)) (command "move" CI "" P1 pause) (setq PP2 (cdr (assoc 10 (entget CI)))) (command "layer" "s" LAY "") (prompt "\n point the water supply > ") (COMMAND "OSNAP" "PER") (command "line" PP2 pause "") (command "aperture" "1") (command "pickbox" "1") (command "osnap" "none") (command "trim" CI "" PP2 "") <<--- This is where it stops (command "erase" CI "") (command "aperture" "3") (command "pickbox" "5") (prompt "\n standpipe rotation > ") (if (wcmatch LAY "*_N_*") (command "insert" "bor_fo_p" PP2 #SC# "" pause) (command "insert" "bor_fo_e" PP2 #SC# "" pause) ) (command "ucs" "p") )


Reply With Quote
