Thanks, that's something. but I cannot draw slanting penetrations... that's why I thought about picking four (three - for closed polyline) points. I have modified a little this routine (see below), but I got four lines around and two lines inside shaft. I am not good at this.... How to get polyline around and two lines inside?
Code:
(defun c:drawshaft (/ Point1 Point2 Point3 Point4 osm la lr1 lr2)
(setq Point1 (getpoint "\nPick first corner of rectangle: ")
)
(setq Point2 (getpoint "\nPick second corner of rectangle: ")
)
(setq Point3 (getpoint "\nPick third corner of rectangle: ")
)
(setq Point4 (getpoint "\nPick fourth corner of rectangle: ")
)
(setq osm (getvar "osmode"))
(setq la (getvar "clayer"))
(SETQ LR1 (TBLSEARCH "LAYER" "CONC-Y"))
(SETQ LR2 (TBLSEARCH "LAYER" "PENETRATION-WHITE"))
(IF (= LR1 NIL)
(command "layer" "make" "CONC-Y" "color" "2" "" "l" "continuous" "" ""))
(IF (= LR2 NIL)
(command "layer" "make" "PENETRATION-WHITE" "COLOR" "7" "" "l" "continuous" "" ""))
(setvar "osmode" 16384)
(command "layer" "t" "CONC-Y" "S" "CONC-Y" "")
(command "._line" Point1 Point2 Point3 Point4 "c" )
(command "layer" "t" "PENETRATION-WHITE" "S" "PENETRATION-WHITE" "")
(command "._line" Point1 Point3 "" "._line" Point2 Point4 "")
(setvar "osmode" osm)
(setvar "clayer" la)
)
(princ)