I have a dialog box that has a button for each county in the state. I do not have all the counties created yet.
How can I place an if statement that allows for a alert box to appear "county dwg is not completed yet..." if the dwg that it is pulling does not exist?
(defun c:adams()
(defun open_dwg_read_only (ad fna)(if (findfile fna)(vla-activate (vla-open ad fna :VLAX-TRUE))))
(open_dwg_read_only (vla-get-documents (vlax-get-acad-object)) "\\\\server\\Adams\\Adams_Co_GIS_SPE_SHP.dwg")
)
I have about 10 out of 90 done lol.
Thank you for any pointers.