I can't figure out why when I manually enter the command it doesn't cause a regeneration of the model, but when I run my code, it causes it twice.
(defun C:PJ ()
(get_CurrentState)
(setvar "CMDECHO" 0)
(setvar "PEDITACCEPT" 1)
(COMMAND ".PEDIT" PAUSE "JOIN" "ALL" "" "")
(cond
((= (cdr (assoc 70 (entget (entlast)))) 1) (princ (strcat "\nPolyline: CLOSED Vertices: " (itoa (cdr (assoc 90 (entget (entlast))))) "\n")))
((= (cdr (assoc 70 (entget (entlast)))) 0) (princ "\nPolyline: OPEN\n"))
)
(set_CurrentState)
(princ)
)
It's not super critical that it happens, but it is certainly annoying.
Any insight would be much appreciated.