• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

nested blocks and polyline

  • Thread starter Thread starter MARCOC
  • Start date Start date

MARCOC

Guest
Hello everyone
somewhere maybe on this forum I downloaded this lisp
(defunc c:exall(/ bset)
(setvar "qaflags" 1)
(while(setq bset(ssget "_x"((0 . "insert")))))
(command "_.explode" bset ")
); end while
(repeat 3(command "_-purge" "all" "n"))
(setvar "qaflags" 0)
(princ)
); end of c:exall

that works perfectly on the blocks, but does not explode the polylines
1) Does anyone know how to change it so that even the polylines explode? ? ?
2) Can you report that command sequence on a script?? ?
3) how can you apply this lisp to more dwg together, without having to open one by one? ?

Thank you very much
 
Code:
(defun c:exall(/ bset)
    (setvar "qaflags" 1)
    (while(setq bset(ssget "_x" '((0 . "insert,lwpolyline,polyline"))))
        (command "_.explode" bset "")
    ); end while
    (repeat 3(command "_-purge" "all" "" "n"))
    (setvar "qaflags" 0)
    (princ)
); end of c:exall
If you want to use it in a script, upload the file lisp with appload, content section, add to the exall script and the game is done. It is clear that at the end of processing you will remove the added file that otherwise at each dwg file opening will be loaded.
 
cuao rp...but exall I write it as if it were a command without strokes vurgolette. etc.

Then I didn't understand from fove I have to take it off at the end? ? ?
 
Okaykk.. but can't I leave it loaded?? ? tab if I don't launch the script shouldn't just start
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top