mhy3sx Posted Wednesday at 03:33 PM Posted Wednesday at 03:33 PM 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 Wednesday at 04:21 PM Posted Wednesday at 04:21 PM 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
mhy3sx Posted Wednesday at 05:06 PM Author Posted Wednesday at 05:06 PM Is any way the code to support Viewport (1) ? Thanks Quote
BlackBox Posted Wednesday at 05:19 PM Posted Wednesday at 05:19 PM 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
mhy3sx Posted Wednesday at 08:20 PM Author Posted Wednesday at 08:20 PM so you said to add support viewports and polylines? 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.