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

center square in the layout

  • Thread starter Thread starter lorenz990
  • Start date Start date

lorenz990

Guest
Hello everyone, I took a ride in the forum and I don't think I found a question like that.. .
I have been working with autocad for a few years but I have always asked myself: is it possible (with some key or some command) to perfectly center the teaming in the layout? or do you have to do as I've always been 'eye' by pulling lines from the extremes of the sheet?
Thank you.
 
click on "Centry press"
is active only quad the selected items to print are:
"window" and "screen"
if the selected item is "layout" the center print selection is inhibited.

for this reason I had written a long time ago these few lines.
Code:
;;----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
;;
;;; center drawing (sheet and cartilage) in print layout.
;;; any slipping objects the sheet influence the centering.
;;----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(defunc c:cefo (c:centrafoglio));shortcut
(defun c:centrafoglio ( / extmed limtmed )
(setvar "cmdecho" 0)
(setq oldsnap (getvar "osmode")
(Setvar "osmode" 0)
(vl-load-com)
(alert (strcat "centres the sheet in the print layout "
"\n"
"\n all design elements must"
"\n be inside the team!"
"\n"
"\n any stocking objects"
"\n influence the centering. "
)
)
(vl-cmdf)
(setq extmed (polar) (getvar "extmin")
(angle (getvar "extmin")(getvar "extmax")
(/ (distance (getvar "extmin")(getvar "extmax"))2))
)
(setq limtmed (polar) (getvar "limmin")
(angle (getvar "limmin")(getvar "limmax")
(/ (distance (getvar "limmin")(getvar "limmax"))2))
)
(vl-cmdf "_.move" (sget "_w" (getvar "extmin") (getvar "extmax") "" extmed limtmed )
(vl-cmdf)
(vl-cmdf "_.zoom" "0.95x")
(setvar "osmode" oldsnap)
(princ)
)
(princ "\n**********************************************
(princ)
 

Forum statistics

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

Members online

No members online now.
Back
Top