Hudson Posted November 10, 2009 Share Posted November 10, 2009 So I've figured out why sometimes my ssget works and sometimes not. If all the objects I'm looking for are within view on my model space window.. I find them.. if not, not. Is there some work around for this? Thanks! Quote Link to comment Share on other sites More sharing options...
alanjt Posted November 10, 2009 Share Posted November 10, 2009 Are you using command? Quote Link to comment Share on other sites More sharing options...
Hudson Posted November 10, 2009 Author Share Posted November 10, 2009 I'm not sure what you mean.. My code looks like this (setq pt_list (list (list x2 y1) (list x1 y2))) (princ "\nSwitched over coords for curve fence: ") (princ pt_list) ;(setq curveSS (ssget "F" pt_list (list (cons 0 "ARC")))) (setq curveSS (ssget "F" pt_list '((0 . "ARC")))) If I can see it in model space I find it. If not, I don't. Quote Link to comment Share on other sites More sharing options...
CarlB Posted November 10, 2009 Share Posted November 10, 2009 if you're using ssget "x" in some form it should not matter the view, but if you are selecting by "cp" or "f" then yes objects would have to be in view to be selected. Workaround? Zoom to extents first . Quote Link to comment Share on other sites More sharing options...
Hudson Posted November 10, 2009 Author Share Posted November 10, 2009 Ah that's frustrating.. at least I've figured out the problem.. I was getting close to tearing my hair out until I realized the problem was that the object wasn't in view. Quote Link to comment Share on other sites More sharing options...
David Bethel Posted November 11, 2009 Share Posted November 11, 2009 Can you just toggle TILEMODE? -David Quote Link to comment Share on other sites More sharing options...
Hudson Posted November 11, 2009 Author Share Posted November 11, 2009 Can you just toggle TILEMODE? -David I will have to look into that. No experience with that. Quote Link to comment Share on other sites More sharing options...
alanjt Posted November 11, 2009 Share Posted November 11, 2009 If you use vla-zoomextents and vla-zoomprevious, it will ignore locked viewports. Quote Link to comment Share on other sites More sharing options...
Hudson Posted November 11, 2009 Author Share Posted November 11, 2009 David, This is what the help file has to say about tilemode Floating ViewportsIn AutoCAD® ActiveX Automation, the ActiveSpace property is used to control the TILEMODE system variable. Setting ThisDrawing.ActiveSpace =acModelSpace is equivalent to setting TILEMODE = on, and setting ThisDrawing.ActiveSpace = acPaperSpace is equivalent to setting TILEMODE = off. So I don't think that will help.. it's not a matter of paper space or model space. Alan, Thanks for those commands.. it's too bad there isn't a "check all the drawing" flag Quote Link to comment Share on other sites More sharing options...
alanjt Posted November 11, 2009 Share Posted November 11, 2009 it's too bad there isn't a "check all the drawing" flag It's programming, not magic. :wink: Quote Link to comment Share on other sites More sharing options...
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.