mhy3sx Posted July 2 Posted July 2 Hi , I use this lisp for years but I have a problem. When I Polyline on layout and select to create viewport from object , when I select the new viewport in properties say VIewport (1) and not Viewport. Then when I run the attach lisp to create the grid on viewport say that no viewport selected. Can any one help me to fix this ? Thanks Surveygridneg.lsp Quote
BlackBox Posted July 2 Posted July 2 It says Viewport (1) because you've created a Viewport by object (Polyline), so they're linked. Your code works fine here and only seems to error when the Viewport is on a locked layer, and the linked Polyline is not... but I am unable to produce the 'no viewport selected' you mentioned. Quote
BlackBox Posted July 2 Posted July 2 11 minutes ago, mhy3sx said: Is any way the code to support Viewport (1) ? Thanks It already supports that. Viewport (1) just means that there's 1 object linked... click the dropdown and you'll see the Viewport and Polyline. The code only allows selection of "VIEWPORT", so when you select it on screen, the Polyline is ignored. Quote
BIGAL Posted Thursday at 07:45 AM Posted Thursday at 07:45 AM Something like this, takes into account the twist in a viewport. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.