LISP for showing viewport border from layout to model space

LISP for showing viewport border from layout to model space

constantin_dragoiu
Explorer Explorer
1,117 Views
7 Replies
Message 1 of 8

LISP for showing viewport border from layout to model space

constantin_dragoiu
Explorer
Explorer

Hello everyoane.

Can someone help me with a lisp routine for drawing the border of viewport from layout to model space ?

If it can be done, I want to use it for all layouts at once.

0 Likes
Accepted solutions (1)
1,118 Views
7 Replies
  • Lisp
Replies (7)
Message 2 of 8

CodeDing
Advisor
Advisor
Accepted solution
0 Likes
Message 3 of 8

constantin_dragoiu
Explorer
Explorer

Does it work for all layouts at the same time  ?

0 Likes
Message 4 of 8

pbejse
Mentor
Mentor

@constantin_dragoiu wrote:

Hello everyoane.

Can someone help me with a lisp routine for drawing the border of viewport from layout to model space ?

If it can be done, I want to use it for all layouts at once.


Are these irregular shape viewports? or a simple rectangular shape?

0 Likes
Message 5 of 8

constantin_dragoiu
Explorer
Explorer

Hello! 

All viewports are rectangular shapes.

I just want to draw the outline of viewport in model space.

0 Likes
Message 6 of 8

CodeDing
Advisor
Advisor

Did you read it?

image.png

0 Likes
Message 7 of 8

TomBeauford
Advisor
Advisor

Try this code by Jimmy Bergmark: https://jtbworld.com/autocad-vp-outline-lsp

Also works with polygonal or clipped viewports. If a viewport's model space is active it automatically draws the outline in model space for that viewport, if in paper space you have to select which viewport to draw the model space boundary in. Works with twisted views in viewports as well.

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
0 Likes
Message 8 of 8

constantin_dragoiu
Explorer
Explorer

big thanks!

0 Likes