I have a series of drawings that are currently in modelspace. What I have to do is
1) Insert a new border in paperspace
2) create a viewport and place the view in modelspace into it.
I am trying to use the command -vports but get an SPPROCESSQUEUE error wghen I use lists such as this:
(command -vports (list 0.625 23.59375) "" (list 35.4375 2.625) "")
Any ideas on how I should be working this?
Thanks
John
I guess this would take care of everything .
(command "_.-layout" "_New" "")
Regards.
Tharwat
(setq p1 (getpoint "\Fisrst Point: "))
(setq p2 (getpoint "\Second Point: "))
(command "mview" p1 p2)
gasty.
It is better to be the getpoint getcorner things like this .
(setq p1 (getpoint "\n Specify first point :"))
(setq p2 (getcorner p1 "\n Specify second point :"))
Regards,
Tharwat
The points are always the same, and when I say "a series of drawings", I mean ~2000 of them.
I will try
(setq p1 (getpoint (list 0.625 23.59375)))
(setq p2 (getcorner (list 35.4375 2.625)))
@Anonymous wrote:The points are always the same, and when I say "a series of drawings", I mean ~2000 of them.
I will try
(setq p1 (getpoint (list 0.625 23.59375)))
(setq p2 (getcorner (list 35.4375 2.625)))
In that case, don't use the (get...) functions, which require user input [that's what the "get" part is about]. Just set the points:
(setq p1 '(0.625 23.59375 0))
(setq p2 '(35.4375 2.625 0))
or, if you're going to use them only once, and if gasty1001's Mview approach works, forget the variables and use the points directly inside that command:
(command "mview" '(0.625 23.59375 0) '(35.4375 2.625 0))
If you're "inserting" the border why can't you have the viewport insert along with the border?
You can save a drawing named "LayoutTemplate.dwg" with the layout named "NewLayout" already setup (including the viewport)
Then in your ~2000 dwgs do something like:
(setvar "filedia" 0)
(Command "Layout" "t" "[path\\LayoutTemplate.dwg]" "NewLayout")
(setvar "filedia" 1)
This may work?
@Anonymous ,
The most likely option, in this case, is that the -PLOT command was used in each drawing. I have hyperlinked it if you might be interested in researching it further.
Best,
~DD
1. To print from a Model, it is not necessary to create layouts. You can print automatically.
2. To create layouts, try this: AutoViewport
3. Attach an example of your file so that we can help you.