Convert VIEWPORT to polyline

jfrog
Enthusiast
Enthusiast

Convert VIEWPORT to polyline

jfrog
Enthusiast
Enthusiast
Does anyone have any routines to convert a viewport in paperspace to a polyline viewport? (without changing the current view)

I'd like to be able to add vertices to the viewports, which you can do if it's a pline.

Thanks in advance
Reply
39,086 Views
17 Replies
Replies (17)

jfrog
Enthusiast
Enthusiast
BTW, I'm using Acad 2002, if that matters
0 Likes

Anonymous
Not applicable
One way of doing this would be to go inside the Viewport you have now and
use the VIEW command to save the current view.
Then back in Pspace, create your new polygonal shape with your PLINE, then
use MVIEW's OBJECT option to convert your newly drawn polygon into a Pspace
Viewport.
Then go inside this new Viewport and use the VIEW command to restore the
previous view you saved.

Paul

wrote in message news:5840018@discussion.autodesk.com...
BTW, I'm using Acad 2002, if that matters

jfrog
Enthusiast
Enthusiast
Brilliant in it's simplicity....thanks much!
0 Likes

joshc96
Contributor
Contributor
The attached is kinda messy, completely undocumented and works on viewports
and polyline-viewports only....but it works.

Josh
-Josh

jfrog
Enthusiast
Enthusiast
thanks...this routine appears to create a pline in model space to correlate to the mview, right? Not quite what I was looking for, but it does do something I normally do manually...so I'll use it anyway.

What I was looking for was a routine to convert the paperspace viewport (created my the MVIEW command) to a polyline viewport (as created by the MVIEW command, "Polygonal" option)

Thanks again,

John

Anonymous
Not applicable

VPCLIP

paullimapa
Mentor
Mentor

Great suggestion @Anonymous

VPCLIP works as long as you retrace the rectangular Vport corners and then you'll end up with a Polyline Vport.

Now if there was a lisp routine that can do this automatically...

 

Area Object Link | Attribute Modifier | Dwg Setup | Feet-Inch Calculator
Layer Apps | List on Steroids | VP Zoom Scales | Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes

Anonymous
Not applicable

I prefer VPCLIP

Deirdre.Warner
Observer
Observer

Just used this option and it worked great! Huge time saver!

0 Likes

nodink
Enthusiast
Enthusiast

Here is what I'd do.. No LSP routine/VPCLIP needed.  Just rotate the viewport 1 degree and rotate back 1 degree. Voila, your VP is now a Polyline. BUT before rotate it back 1degree, Pedit it before rotate it back.

Anonymous
Not applicable

USE BOUNDARY COMMAND 

Patricia_Villar-HPA
Explorer
Explorer

Thanks Carlos, this is the answer. Easy and fast!

0 Likes

aruckerY7D6L
Advocate
Advocate

3yrs later and still an effective answer. Thanks Much!

0 Likes

Anonymous
Not applicable
Brilliant! That's my learning quota for the day. In danger of exceeding said quota however, why Pedit before rotating it back?
0 Likes

aruckerY7D6L
Advocate
Advocate

If you just rotate it back then, for me, it turns back to a normal VP. Where as if you run the PEDIT command, it will remain a polyline. You can also just add a vertex instead of PEDIT and that will also give the desired results; and it wont let you use PEDIT or add a vertex before rotating.

thaddeus.morrison
Explorer
Explorer

I logged into my account just to give this a thumbs up. This is the epitome of KISS.

0 Likes

hani.serhan
Community Visitor
Community Visitor
VPClip!
0 Likes