Restoring viewports

Restoring viewports

Anonymous
Not applicable
1,628 Views
9 Replies
Message 1 of 10

Restoring viewports

Anonymous
Not applicable

Dear All,

          We have an issue with viewport . The polylines with global thickness is shown as not filled. We have tried many options like "plan","UCS", "Fill", "fillmode", "shademode". Nothing is worked. But the restore option in viewport creation has fix this problem. But we need to create all viewports again.

 

command : mv

Specify corner of viewport or [ON/OFF/Fit/Shadeplot/Lock/Object/Polygonal/Restore/LAyer/2/3/4] <Fit>: Restore

 

Specify first corner or [Fit] <Fit>:

 

 

Is there any way to restore the existing all  viewports.

 

 

STM

0 Likes
Accepted solutions (2)
1,629 Views
9 Replies
Replies (9)
Message 2 of 10

salman_majgaonkar
Contributor
Contributor
(defun c:mvr()
(setq AB1 (layoutlist))
(setq AB2 0)
(repeat (length AB1)
(setq AB3 (nth AB2 AB1))
(command "layout" "s" AB3)
(command "mview" "r" "" "")
(setq AB2 (1+ AB2)) ) )
0 Likes
Message 3 of 10

joselggalan
Advocate
Advocate
Please, you can attach a small DWG to visualize the problem.
0 Likes
Message 4 of 10

Anonymous
Not applicable

Hi Salman_majgoankar

                                        Thanks for the reply. I want to restore my Existing viewports. The code restores the new view ports.

STM

0 Likes
Message 5 of 10

Anonymous
Not applicable

Hi Joselggalan,

                     I have attached the dwg.

STM

0 Likes
Message 6 of 10

gdefilo
Advocate
Advocate

Hi thavasi1982,

 

I noticed the polyline is not planar to the current UCS in the left vport. But it is in the right vport.

Restoring the UCS parallel to the polyline will solve the visualization issue.

 

Hope this helps,

Giancarlo

 

Message 7 of 10

Anonymous
Not applicable

Hi Giancarlo,

           Thanks for the reply. But i don't know how to correct this UCS issue.

 

STM

0 Likes
Message 8 of 10

gdefilo
Advocate
Advocate
Accepted solution

Well,

the polyline is designed in a UCS which is not the World UCS, but a rotated one.

You can see it moving in Model Space: the UCS icon has not a little square where X and Y axis meet.

So, in the sample file you uploaded, when you move to Model Space, the current UCS is parallel to the polyline, which shows filled.

If you change UCS to World, the polyline will lose the solid which is filled with. That means the polyline is not designed in the World UCS.

 

You can choose to:

- change the UCS according to the polyline in the left vport;

or

- draw a new polyline according to the (World) UCS.

 

Don't know which solution is best for your drawing, but the first solution could be this way:

go in model space and verify that the polyline shows filled. With the UCS command, save a configuration and give it a recognizable name (for instance "UCS01").

Change space from model to paper, double click inside the left vport, restore the named UCS. Make a "plan" view and the polyline will show filled.

 

Hope this helps,

Giancarlo

 

 

Message 9 of 10

Anonymous
Not applicable
Accepted solution

Further to what Giancarlo provided:

 

setting UCS and creating VIEWS can be very helpful when working in model space or viewports.

UCS has many options and does not move any objects, but rather sets the views in 3D space to work easier.

 

One that I use alot is UCS Object. This might work well for the issue you are experiencing (a polyline).

 

the steps are as follows:

 

  1. Type UCS on commandline -> ENTER
  2. Choose OBJECT option (type OB) -> ENTER
  3. Selection can be tricky - you must select the side of the polyline to the orientation (up or down) that you want your rotation
  4. Typically its the left side of the polyline for UP and the right side of the polyline for DOWN
  5. You should see your UCS ICON appear at the end of the polyline -> ENTER
  6. Now type PLAN -> ENTER, ENTER

your UCS is now oriented on the polyline 

 

to return to WORLD:

 

    1. Type UCS on commandline -> ENTER
    2. Choose WORLD option (type W) -> ENTER
    3. Type PLAN -> ENTER, ENTER

You are now back in WCS or World UCS.

 

I hope that was helpful.

 

 

Message 10 of 10

Anonymous
Not applicable

Thanks to all.

Problem has been solved.

 

STM

0 Likes