ERRO: _ai_selall

ERRO: _ai_selall

rolisonfelipe
Collaborator Collaborator
399 Views
3 Replies
Message 1 of 4

ERRO: _ai_selall

rolisonfelipe
Collaborator
Collaborator
(DEFUN C:MOVELAY ()
  (PRINC "\n START \n")
(command "_.zoom" "e"); ZOON EXTEND FOR SEE OBJECT
(if (= (tblsearch "LAYER" " NAME LAYER "))
(command "-LAYER" "M" " NAME LAYER " "c" "7" "" "LT" "Continuous" "" "LW" "0.00" "" "")); FIND AND BORN LAYER
(setq name  (command _ai_selall )); ERRO SELECT ALL OBJECT
(command "chprop" name  "" "LA" " NAME LAYER " ""); MODIFY LAYER OBJECT
(command "_.purge" ); PURGE ALL LAYER NOT USED
(command "_.zoom" "e"); ZOON EXTEND
(command "_.qsave"); SAVE
(command "_.quit"); CLOSE FILE
  (princ)
)
 
0 Likes
Accepted solutions (1)
400 Views
3 Replies
Replies (3)
Message 2 of 4

Sea-Haven
Mentor
Mentor
Accepted solution
(command "_.purge" ); PURGE ALL LAYER NOT USED

(command "_.purge" "LA" "*" "N" ); PURGE ALL LAYER NOT USED
0 Likes
Message 3 of 4

rolisonfelipe
Collaborator
Collaborator
how can i enter select all command (command _ai_selall ) , because no command line works correctly, but in lsp it doesn't run
0 Likes
Message 4 of 4

ВeekeeCZ
Consultant
Consultant

(c:ai_selall)

 

It's just another lisp routine defined at acad2022doc.lsp file.

 

 

BTW

You can just select all directly from CHPROP

(command "chprop" "all" "" "LA" " NAME LAYER " "")

 

Also, I guess it's just an imaginary name, but you really cannot start a layer name with a SPACE.

0 Likes