0% found this document useful (0 votes)
4 views1 page

update_attributes

Uploaded by

bravomikeparle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

update_attributes

Uploaded by

bravomikeparle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

(Defun C:ual ()

(foreach layout (layoutlist)


(setvar "ctab" layout)

(update_attributes)
(zsc)
(rvp)
(command "zoom" "e")
);foreach
(princ)
);defun
'--------------------------
(defun update_attributes()
(setq SH_NUM(getstring "\nSheet Number"))
(command "attedit" "y" "Template" "SH" "*" "w" "0,0" "420,297" "V" "R" SH_Num "")
)
'-----------------------
(defun ZSc()
;(command "zoom" "extent")
(setq os(getvar "osmode"))
(command "mspace")
(setvar "osmode" 1)
(setq P1(getpoint "\nFirst Point of rectangle"))
(setq P3(getcorner p1 "\nCorner Point of rectangle"))
(Command "Zoom" p1 p3)
(command "pspace")
;(command "zoom" "extent")
(setvar "osmode" os)
(command "save" "")
);defun
'------------------------------
(defun rvp ()
(setvar "cmdecho" 0)
(command "tilemode" 0)
(command "mspace")
(princ "\nProgram by: MANOJ BARAL ")
;(setvar "cvport" 5)
(setq p1 (getpoint "\nPick First Insertion Point...."))
(setq p2 (getpoint p1 "\nPick Second Insertion point...."))
(setq p3 (getpoint p2 "\nPick Third Insertion point...."))
(setq d1 (distance p1 p2))
(setq d (/ d1 2.00))
(setq a1 (angle p1 p2))
(setq a1 (* a1 57.29578))
(command "_.DVIEW" "" "_TW" (- a1) "")
(command "Zoom" p1 p3)
(command "pspace")
(command "zoom" "all")
(setvar "cmdecho" 1)
(princ)
)

You might also like