Jump to content

SSGET success Dependent on Viewport -- Help


Hudson

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :).

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...