If you do a (SSGET "x") will do a selection set of all enty on all layers
(ssget "X") creates a selection set of all entities in the drawing including those on layers that are frozen or off.
But i will not do allow to move LOCKED layer
Registered forum members do not see this ad.
hi, i made this to do the following;
this works fineCode:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; 1) This routine will turn ALL layers (on/thaw/unlock) state. ;; 2) It will then select all the layers. ;; 3) Then move (NOT FLATTEN) everything to 0,0,0 coordinates ;; with a basepoint input from the user. ;; -->> by pryzmm 072007 !!! ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (DEFUN C:000 () (setvar "cmdecho" 0) (command "-layer" "u" "*" "t" "*" "on" "*" "" "") (setvar "osmode" 33) (princ "\nSelect base point->> hint (any end or intersection point):") (setq p1 (getpoint)) (command "move" "all" "" p1 "0,0,0" ) (setvar "osmode" 167) (setvar "cmdecho" 1) (prompt "......................done !!! ")(terpri) (princ)); end, but what i really want is something like the sequence below;
(defun c:000 ()
(mapped all the current layer state and save in memory)
(turn all the layers (on/thaw/unlock) if its find one that is
(off/freeze/locked))
(select all layers and move to 0,0,0 with a basepoint from user)
(change back all the layers to its previous state using the 1st line string of command or any other string));end of routine
any suggestion,,,gurus and coders alike ???
i use autocad 2006
If you do a (SSGET "x") will do a selection set of all enty on all layers
(ssget "X") creates a selection set of all entities in the drawing including those on layers that are frozen or off.
But i will not do allow to move LOCKED layer
Last edited by devitg; 27th Jul 2007 at 06:15 pm. Reason: I talk before think
devitg, could you exactly code that for me pls. im blurrr in this kind if codes, all i knew are those very basic ones,,,,plssssss...thanks
Registered forum members do not see this ad.
hi, thanks for that but could anyone pls. help on how exactly where to put this string in the above,,,,plsssss thanks guys in advance
Bookmarks