; Jason Piercey . July 24th, 2003
; performs a wildcard match between the second
; element in dxf code 2 and [entry] for each
; entry defined in [table].
; [table] - string, table name
; [entry] - string, entry name
; return - list, list of entity lists
; example: (wcTblnext "dimstyle" "stan*")
(defun wcTblnext (table entry / data rtn)
(setq table (strcase table))
(setq entry (strcase entry))
(while (setq data (tblnext table (null data)))
(if (wcmatch (strcase (cdr (assoc 2 data))) entry)
(setq rtn (cons data rtn))) )
(reverse rtn)
)
You would need to use it like this:
(wcTblnext "view" "FR-*")
Then do whatever you want with the list of data
--
Autodesk Discussion Group Facilitator
"Mark Douglas" wrote in message news:405b7342$1_1@newsprd01...
> Thanks Im still stuck on trying to get a list of only Views that start with
> "FR-"
>
> Mark