PDA

View Full Version : Force new VIEWPORT to specific layer


JeremiahM
2004-10-18, 09:53 PM
Hello all, by default the viewport created in a new Layout is always set to the current layer. We always put them on a VPORTS layer that is set not to plot. Is there a way to force the VIEWPORT to a specified layer?

Thanks

Glenndp
2004-10-18, 10:10 PM
You can create a small lisp routine that could do this. Then redefine the viewport command. If you just want to use a toolbar button. You could make a quick macro to set the layer to your viewport layer.

Mike.Perry
2004-10-18, 10:12 PM
Hi

Please note I've *moved* this thread from the ACAD 2005 General (http://forums.augi.com/forumdisplay.php?f=58) Forum to this one as I feel this particular Forum is a more appropriate place for such a topic.

Thanks, Mike

Forum Moderator

Mike.Perry
2004-10-18, 10:15 PM
Hi

To add to Glenn's suggestion's -

Instead of redefining a command you could look at Reactors (LISP) or Events (VBA).

Really depends on how far you want to take it.

Have a good one, Mike

JeremiahM
2004-10-18, 10:32 PM
I only know enough lisp to make me dangerous and no vba. I do have toolbar buttons customized for inserting our attributed title blocks and setting them to the correct layer using -INSERT and -LAYER. If I could keep it simple by selecting the existing vport and setting it to the correct layer in the button that would be great (it doesnt seem that QSELECT or FILTER have command line equivalents). Would that be possible?

Mike.Perry
2004-10-18, 10:42 PM
Hi

If you want to keep it simple take a look at command like -

_.Change
_.Select
etc

Have a good one, Mike

JeremiahM
2004-10-18, 10:50 PM
Thanks Mike the _.CHAGE worked perfect. I used a select all because the only thing in the layout should be the vport. i will know when my engineers are drawing in the wrong space very quickly as well! Thanks to you too Glenn.

Is there anyway to get into page setup from the command line?

Thanks again.

Mike.Perry
2004-10-18, 10:55 PM
Hi

Thanks Mike the _.CHAGE worked perfect.
I take it you mean _.Change ;-)

Is there anyway to get into page setup from the command line?
What exactly do you mean? Are you talking Importing of Page Setups or something different?

<add>
Below are a few threads that contain some useful information on Page Setups -

Is there any replacement for BatchPlot in Autocad 04 and 05? (http://forums.augi.com/showthread.php?t=4846)

Deleting Page Setup for Upgrade to 2005 (http://forums.augi.com/showthread.php?t=6755)

Permanently add format to page setups (http://forums.augi.com/showthread.php?t=7812)

how to delete existing page setup? (http://forums.augi.com/showthread.php?t=8908)

+

Further searching within the Forums should turn-up a lot more -

Search Forums (http://forums.augi.com/search.php?)
</add>

Have a good one, Mike