Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

2014: Creating a hole in a viewport that actually works

Anonymous

2014: Creating a hole in a viewport that actually works

Anonymous
No aplicable

Hi, so I'm making a hole in a viewport by drawing a polygonal viewport and drawing an outline of the main viewport and an outline of the area I want cut out, all in one (see cyan line in  attached picture 1).

 

So I want to exclude the area in the bottom centre of the page, but include the area outside of that. In that hole, I would then draw another viewport.

 

In model space, to demonstrate the problem, I've written "THIS SHOULD SHOW UP" around the hole and "THIS SHOULD NOT SHOW UP" within the hole.

 

When I either export or print to PDF, the text behind the viewport shows up anyway (see attached picture 2 for PDF created).

 

Why doesn't my method of creatijng a viewport with a hole work? And how do I do it properly?

 

The workaround is obvious: move stuff around in the viewport so nothing is behind the hole, but I won't always be able to do this, so I need a proper solution really.

 

Cheers

0 Me gusta
Responder
3.007 Vistas
7 Respuestas
Respuestas (7)

m_kingdon
Advisor
Advisor
Not entirely sure what you are trying to achieve...viewports are supposed to be simple closed spaces so I think it is impossible to make an island in one of them.

The viewport will show whatever the viewport is looking at, you can control that be turning off the viewport, or excluding certain layers within that viewport. Or if you just want a blank box you can use a WIPEOUT. I hope this helps.

Mike Kingdon
Civil 3D Zealot

EESignature

0 Me gusta

steven-g
Mentor
Mentor

The viewport in the attached layout was created with the Mview command, using a polyline for the outline. Put the polyline and viewport onto a non plotting layer and they won't print either.

0 Me gusta

M_Hensley
Advisor
Advisor

To make a viewport with a hole in it make sure both your rectangles are closed polylines. Use REGION command to turn them both into regions. Use SUBTRACT command and select the outer then subtract the inner from it. This gives you a region with a hole in it. In viewport command use object option and select this region. Now you have a viewport with a hole in it.

Anonymous
No aplicable

@steven-g wrote:

The viewport in the attached layout was created with the Mview command, using a polyline for the outline. Put the polyline and viewport onto a non plotting layer and they won't print either.


It's weird how you seem to have done exactly what I'm trying to do, yet yours works and mine doesn't. I'll probably use the WIPEOUT or REGION/SUBTRACT commands in the future though, if this obvious way doesn't work again

0 Me gusta

m_kingdon
Advisor
Advisor
I just tried the REGION/SUBTRACT method, works great. I never knew you could do that with viewports.

Mike Kingdon
Civil 3D Zealot

EESignature

0 Me gusta

Anonymous
No aplicable

draw the shaped (as per grips highlighted)

use MVIEW command - Object - select the object.

 

This then becomes a viewport

Mview-object.png

0 Me gusta

Anonymous
No aplicable

@M_Hensley wrote:

To make a viewport with a hole in it make sure both your rectangles are closed polylines. Use REGION command to turn them both into regions. Use SUBTRACT command and select the outer then subtract the inner from it. This gives you a region with a hole in it. In viewport command use object option and select this region. Now you have a viewport with a hole in it.


Your comment so good, I screened it and "paste-specialed" it in the worksheet.