@humbertoha_sae wrote:
(setq ss (ssget "X" '((0 . "LINHA") (-3 ("codigo")))))
; erro: sequência de caracteres de modo ssget incorreta
(setq ss (ssget "X" '((0 . "LINE") (-3 ("codigo")))))
; erro: sequência de caracteres de modo ssget incorreta
Onde, "codigo" é o nome da "aplicação" registrada na entidade.
Qual a causa do erro?
Estou usando o AutoCAD Map 2023
@humbertoha_sae
(setq ss (ssget "X" '((0 . "LINHA") (-3 ("codigo")))))
;; or
(setq ss (ssget "X" '((0 . "LINE") (-3 ("codigo")))))
should not generate an error (não deveriam gerar erro)
the first will always return nil because the entity LINHA does not exist (o primeiro retorna sempre nil porque a entidade LINHA não existe)
The second returns nil if there are no elements with XDATA or if there is no RegApp with that name (a segunda retorna nil se não existirem elementos com XDATA ou se não existir a RegApp com esse nome), if there are LINES with XDATA associated with the RegApp with that name it returns a selection set (caso existam LINES with XDATA associada à RegApp comesse nome retorna uma seleção).
Attach an example drawing, with some lines with XDATA, it will be easier for someone to help you (Anexa um desenho de exemplo, com algumas linhas com XDATA, que será mais facil alguem poder te ajudar)
This forum is in English, if you need help in Portuguese, post in this forum AutoCAD - Português (Este forum é em Inglês, se necessitares de ajuda em Português, passa a postar neste forum AutoCAD - Português)
Hope this helps,
Henrique