I have this ssget filter:
(setq SstABC (ssget "_X" '((8 . "$ABC_REVS,$ABC_TEXT*,$ABC_ATTRIB,$ABC_THIN,$ABC_NORM,$ABC_MIDI,$ABC_WIDE,$ABC_DIM,$ABC_HATCH") (67 . 0))))
Is there a more elegant method of building a Wcmatch or Selset filter?
Example:
(setq In_Lst '("REVS" "TEXT*" "ATTRIB" "THIN" "NORM" "MIDI" "WIDE" "DIM" "HATCH"))
(defun BuildWcmatchStr (In_Lst PfxStr / OutStr)
(setq OutStr "")
(foreach ForElm In_Lst
(setq OutStr (strcat OutStr PfxStr ForElm ","))
)
(substr OutStr 1 (1- (strlen OutStr)))
)
(setq FltStr (BuildWcmatchStr In_Lst "$ABC_"))
(setq SstABC (ssget "_X" (list (cons 8 FltStr) '(67 . 0))))