I want to change the line type of the last entity drawn (an arc) from continuous to dashed. What is failing?
...
(command "_.arc" "c" "_non" pt1 "_non" pt3 "_non" pt2 "")
(setq ent1 (entlast))
(setq ent2 (entget ent1))
(setq ent2 (subst (cons 6 "dashed") (assoc 6 entdados) ent2 ))
(entmod ent2)