Dear sir,
i am looking create a layer if not found in drawing and its already in drawing the continue the program
confusion in this code its required progn or not
;----------------- Create layer if not found layer in drawing or its found the layer continue the program (opt-1)
(If (Null Mytextlayer) ;If Start
(Progn (Setq (Mytextlayer "MYTEXT") ;Layer is MYTEXT
(Setq txlayer (Tblsearch "layer" Mytextlayer)) ;Search in layer table
(If (Null txlayer) ;If not found MYTEXT Layer
(Progn (Setq Mytextlayer () ;confusion this line is required or not
(Command "layer" "m" mytextlayer "")) ;create layer MYTEXT
)))))
;If already layer its exist, then continue the program