Layout – Mview – New – code to help

Layout – Mview – New – code to help

Henrik_Lo
Collaborator Collaborator
1,679 Views
6 Replies
Message 1 of 7

Layout – Mview – New – code to help

Henrik_Lo
Collaborator
Collaborator

Hi

I tray to used his command "MView, in an automatic way, this for test for another purposes.  I ‘can’t get I to work

somebody knows why.

Iam in layout mode and need to zoom in to a known area.

 

(DeFun c:ppppp ()
      (Setq P11 (list 21 113))
      (Setq P22 (list 82 118))
      (setq P111 (list 93 217))
   (command "_MView" "new" "p11" "p22" "" p111)
)

Regards

Henrik

0 Likes
Accepted solutions (1)
1,680 Views
6 Replies
Replies (6)
Message 2 of 7

Ajilal.Vijayan
Advisor
Advisor

try by removing the quotes for p11 and p22

(command "_MView" "new" p11 p22 "" p111)

 

0 Likes
Message 3 of 7

Henrik_Lo
Collaborator
Collaborator

HI

Yes, quotation is nor right, not working without too

Regards

Henrik

0 Likes
Message 4 of 7

devitg
Advisor
Advisor

As I can get . there is not a NEW option at MVIEW

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

Sea-Haven
Mentor
Mentor

My $0.05

 

(command "_MView" p11 p22 "Mspace" "zoom" "C" p111 15 "pspace")
0 Likes
Message 6 of 7

Henrik_Lo
Collaborator
Collaborator

HI

The new line is working as I were after, fantastic, thangs for helping me out.

I do have a New in my command Mview

 

Regards

Henrik

 

 

0 Likes
Message 7 of 7

hak_vz
Advisor
Advisor
Accepted solution

MVIEW new option NEw is described as:

Creates and places a new view and layout viewport on the layout. With this option, the drawing area switches
temporarily to a maximized view of model space, where you can click two points to define the rectangular area of the view.......

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes