View Full Version : viewport with Autolisp
hostetterkl
2005-01-11, 06:36 PM
Is there a way to create viewports using autolisp?
rkmcswain
2005-01-11, 08:00 PM
Tiled, floating, or both?
hostetterkl
2005-01-11, 08:20 PM
BOTH! I AM TRYING TO GET THE VALUES OF AN EXISTING VIEWPORT TO CREATE A NEW ONE.
kennet.sjoberg
2005-01-11, 09:59 PM
In the same Drawing ?
In the same Layout ?
In the same Layer ?
: ) Happy Computing !
kennet
msjca
2005-01-11, 10:04 PM
For floating point (paperspace) viewports.
(command "copy" pause "" pause pause)
or
(ssget (list (cons 0 "VIEWPORT"))))
(command "copy" "p" "" pause pause)
Really, the trick is for AutoLISP to decide which viewport you want to copy.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.