;; by Eduardo Fernal, 01/2000
(DEFUN c:dxt (/ tabela item)
(SETVAR "CMDECHO" 0)
;; Portuguese
;|
(SETQ tabela (GETSTRING "\n-> Tabela a pesquisar (layer, style, etc...) : "))
(SETQ item (GETSTRING "\n-> O que pesquisar nesta tabela ? : \n\n"))
|;
;; In my bad english
(SETQ tabela ;|table|;
(GETSTRING "\n-> Source table (layer, style, ltype, etc...) : ")
)
(SETQ item (GETSTRING "\n-> Wich item do you want to see ? : "))
(IF (AND tabela
(MEMBER (STRCASE tabela 1) '("layer" "ltype" "block" "style" "dimstyle"))
item
(TBLSEARCH tabela item)
)
(PROGN (PRINC "\n-> Resultado : \n")
(FOREACH x (ENTGET (TBLOBJNAME tabela item)) (PRINT x))
(TEXTPAGE)
)
;; (alert "Erro: tabela e/ou itens não existem...")
(ALERT "Error: Table and/ou item does not exists...")
)
(PRINC "\n\n")
(PRINC)
)
;|
example
Command:
Command: dxt
-> Source table (layer, style, ltype, etc...) : layer
-> Wich item do you want to see ? : 0
-> Resultado :
(-1 . <Entity name: 7ef01c80>)
(0 . "LAYER")
(5 . "10")
(102 . "{ACAD_XDICTIONARY")
(360 . <Entity name: 7ef030f0>)
(102 . "}")
(330 . <Entity name: 7ef01c10>)
(100 . "AcDbSymbolTableRecord")
(100 . "AcDbLayerTableRecord")
(2 . "0")
(70 . 0)
(62 . 7)
(6 . "Continuous")
(290 . 1)
(370 . -3)
(390 . <Entity name: 7ef01c78>)
(347 . <Entity name: 7ef01f00>)
|;