AutoCad - Tables Système

Publié le par tea che

AutoCad utilise des tables pour stoquer certaines informations :

- layer
- ltype
- view
- textstyle
- block
- UCS
- viewport

On les parcourt avec les commandes lisp : tblsearch et tblnext

(tblnext "layer") renvoie l'élément suivant de la table Layer :

(tblnext "layer") -> ((0 . "LAYER") (2 . "0") (70 . 0) (62 . 2) (6 . "Continuous"))
(tblnext "layer") -> ((0 . "LAYER") (2 . "BATIMENT--DES-") (70 . 0) (62 . 4) (6 . "Continuous"))
(tblnext "layer") -> ((0 . "LAYER") (2 . "AXE-LIGNE-AXE-") (70 . 0) (62 . 1) (6 . "EDF-AXE_LIGNE"))

(tblsearch "layer" "CONTRE-PROFIL-DES-") renvoie l'élément recherché "CONTRE-PROFIL-DES-" de la table Layer :

((0 . "LAYER") (2 . "CONTRE-PROFIL-DES-") (70 . 0) (62 . 8) (6 . "CACHE2"))

(tblsearch "layer" "Calque_inconnu") -> nil

(tblnext "layer" T) retourne au premier élément de la table Layer :

((0 . "LAYER") (2 . "0") (70 . 0) (62 . 2) (6 . "Continuous"))

Publié dans AutoCad

Pour être informé des derniers articles, inscrivez vous :
Commenter cet article