If I am understanding correct you want to hatch the white line area maybe use pick pt1 (left side) pick pt2 (right side) pick pt3 (approx hatch point) then do a pline as per code then just command -hatch pt3 etc I think this what Lee is getting at with addhatch
Just me I would do pline as pt1 pt3 pt4 pt5 pt2 using polar the advantage is that you can create defuns so that your hatch works in any quadrant. Thinking further first pick point is actaually line same as second this gives angle of lines, pick near end can work out end of line then, caters for a non square corner.
found this addhatch needs some more varables Lee ?
- ;; Set Vlisp Environment variables(setq ActiveDoc (vla-get-activedocument (vlax-get-acad-object)))(setq Space (if (= (getvar "cvport") 1) (vla-get-paperspace ActiveDoc) (vla-get-modelspace ActiveDoc) )) (vlax-invoke space 'addline Pt1 Pt2))(vlax-invoke space 'addarc cenpt angle1 angle2 )(vlax-invoke space 'addhatch pt1 ..........) ; needs more answers
|