Creating a layout viewport based on a selection in model space

Creating a layout viewport based on a selection in model space

Anonymous
Not applicable
3,102 Views
1 Reply
Message 1 of 2

Creating a layout viewport based on a selection in model space

Anonymous
Not applicable

I want to know if there is a way to create viewports on layout from a selection in model space.

This would increase my speed if I could select what I want in model space, and tell it to automatically turn in a, i.e., 1:25 scale viewport on my layout space, rather than having to create a viewport on layout and manually set the view. 

 

Similar to other 3D software, where the view in perspective can be turned into a camera. I want to do this but with viewports in CAD LT. 

From model selection: from model.JPGto viewport:to vprt.JPG

 

Is that a feature Autocad can do? 

 

 

Thanks!

0 Likes
3,103 Views
1 Reply
Reply (1)
Message 2 of 2

Paul_Gander
Advocate
Advocate

This macro will take a closed shape drawn in modelspace and use it to create a viewport  in a layout. Its scale will be set to 1/25.

 

^c^csetenv pgm_ctab $m=""""$(getvar,ctab)"""";model copyclip l ;"$m=ctab """"""""$(getenv,pgm_ctab)"""""""";pasteclip non 0,0 zoom e scale l ;non 0,0 1/25 zoom e move l ;non 0,0 \-vports o l mspace zoom o l ;zoom s 1/25xp erase l ;pspace -vports l on l"

First draw your shape around the objects you want to view. It must be a closed polyline, circle or ellipse. Then switch to the layout you want the viewport created in and call the macro. Finally pick a point to position the viewport. The original shape will be deleted from modelspace.

 

To keep it simple, the scale is hardcoded in the macro (1/25) but you can create a different macro for each scale you use.

0 Likes