Modification in given Lisp.

Modification in given Lisp.

fkp7057
Advocate Advocate
562 Views
2 Replies
Message 1 of 3

Modification in given Lisp.

fkp7057
Advocate
Advocate

I am using the below-given Lisp to set all objects at elevation 0.

it is almost working perfectly, but object which are in block can not able to move at 0 elevations.

it will be good if this list moves all cad objects whether it is inside of the block or outside the block. 

 

This will help me or other users also. for their daily works.

(defun C:Z0 ()
  (ssget)
   (command "move" "p" "" '(0 0 0) '(0 0 1e99) "move" "p" "" '(0 0 0) '(0 0 -1e99))
)

 

0 Likes
Accepted solutions (1)
563 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant
Accepted solution

Use FLATTEN or Superflatten.

0 Likes
Message 3 of 3

fkp7057
Advocate
Advocate

Ohh Yes.. Thanks to how I forgot this flatten command, 

Thanks for reminding me...

but the first time I heard superflatten this command is not available in my Autocad. is there any LISP available for this?

0 Likes