Good day everyone I have the next code that creates a tunnel profile wich I use at work.
I'm trying to join the lines and arcs but the join command does nothing, if I do it mannually it join them.
(defun c:xro2()
(setq EsqInfIzq (getpoint "\nEsquina Inferior Izquierda: "))
(setq EsqSupDer (getcorner EsqInfIzq "\nEsquina Superior Derecha: "))
(command "_line" EsqInfIzq "@1,0" "" )
(setq linea1 (entlast))
(command "_line" EsqInfIzq "@0,1" "" )
(setq linea2 (entlast))
(command "_line" EsqSupDer "@-1,0" "" )
(setq linea3 (entlast))
(command "_line" EsqSupDer "@0,-1" "" )
(setq linea4 (entlast))
(command "_filletrad" "0.0" )
(command "_.fillet" linea1 linea4 )
(command "_filletrad" "0.8" )
(command "_.fillet" linea3 linea4 )
(setq curva1 (entlast))
(command "_.fillet" linea2 linea3 )
(setq curva2 (entlast))
(command "_join" linea1 linea2 linea3 linea4 curva1 curva2 "")
(princ)
)
edit kdub: Changed post title to be more descriptive.