Angelo2449
Guest
Hello everyone,
with this code I ask to click the internal point of a closed area to proceed with the desired dash.
How can I verify that the clicked point is actually within a closed area?
Thank you.
with this code I ask to click the internal point of a closed area to proceed with the desired dash.
How can I verify that the clicked point is actually within a closed area?
Thank you.
Code:
(setq puntoins (getpoint "\nclicca il punto interno di un'area chiusa"))
(if puntoins
(progn
(setq ctrllayer (tblsearch "layer" colorei))
(if (= ctrllayer nil)
(command "_layer" "_new" colorei "_color" colores colorei "")
);;if
(cond
((and (= cods "s") (= codt "s")) ;; stringa solid
(command "_bhatch" "_pr" "_s" puntoins "")
);;if
((and (= cods "n") (= codt "s")) ;; numero solid
(command "_bhatch" "_pr" "_s" puntoins "")
);;if
((and (= cods "s") (= codt "t")) ;; stringa tratteggio
(command "_bhatch" "_pr" "ansi31" (atof disttx) angolou puntoins "") ;; 0.31496 3.175 0.07874
);;if
);;cond
(command "_change" "_last" "" "_p" "_layer" colorei "")
);;progn
);;if