lamensterms Posted July 1, 2016 Share Posted July 1, 2016 Hi, I've been having some trouble getting SSGET filters to recognise a particular ProSteel element type (called "Ks_VolBody"). In my experience SSGET filters work fine with all other ProSteel element types, just not "Ks_VolBody". The problem is that (SSGET "X" '((0 . "Ks_VolBody"))) will not detect/select this element type. According to these following commands, this 'entity type' is as follows: LIST = Ks_VolBody Properties Palette = Ks_VolBody DUMPIT = ObjectName (RO) = "Ks_VolBody" ENTGET>ENTLAST = (0 . "Ks_VolBody") All other data returned by ENTGET>ENTLAST = ((-1 . ) (0 . "Ks_VolBody") (330 . ) (5 . "20621") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "PS_BOLT")) (SSGET "X" '((0 . "K*"))) will detect these elements, but also selects all other ProSteel elements. (SSGET "X" '((0 . "Ks*"))) will not detect these elements, but selects all other ProSteel elements. (SSGET "X" '((0 . "K"))) returns nil. I realise this will be hard or impossible for a lot of you to test, but I'm wondering if perhaps there could be another way for SSGET to filter these elements, or if there is another way to learn the true 'entity type' for these elements. DWG attached. Thanks a lot for any help. Ks_VolBody Test.dwg Quote Link to comment Share on other sites More sharing options...
Roy_043 Posted July 1, 2016 Share Posted July 1, 2016 Does this work?: (ssget "_X" '((0 . "ACAD_PROXY_ENTITY") (1 . "Ks_VolBody"))) Quote Link to comment Share on other sites More sharing options...
lamensterms Posted July 1, 2016 Author Share Posted July 1, 2016 Hey Roy-043, Thanks a lot for the reply. Unfortunately (ssget "_X" '((0 . "ACAD_PROXY_ENTITY") (1 . "Ks_VolBody"))) returns 'nil'. Quote Link to comment Share on other sites More sharing options...
David Bethel Posted July 1, 2016 Share Posted July 1, 2016 Maybe it has changed, but group 0 has historically been UPPERCASE . Did you try that ? -David Quote Link to comment Share on other sites More sharing options...
lamensterms Posted July 1, 2016 Author Share Posted July 1, 2016 Thanks for the reply David. I've just tried UPPERCASE versions and they still return nil. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted July 1, 2016 Share Posted July 1, 2016 Does the following return a valid selset? (ssget "_X" '((0 . "ACAD_PROXY_ENTITY"))) If so, you may need to obtain the initial selection set using this, and then filter further within the processing loop. Quote Link to comment Share on other sites More sharing options...
a_67vdub Posted July 1, 2016 Share Posted July 1, 2016 Random shot in the dark guess: (ssget "_X" '((0 . "K*,~Ks*"))) Quote Link to comment Share on other sites More sharing options...
a_67vdub Posted July 1, 2016 Share Posted July 1, 2016 Actually I did some testing and I don't think my last guess will work. But this one might: (ssget "_X" '((-4 . "<AND") (0 . "K*") (0 . "~Ks*") (-4 . "AND>"))) Quote Link to comment Share on other sites More sharing options...
lamensterms Posted July 4, 2016 Author Share Posted July 4, 2016 Thanks a lot for the replies everyone. @Lee (ssget "_X" '((0 . "ACAD_PROXY_ENTITY"))) unfortunately returns 'nil'. @a_67vdub (ssget "_X" '((-4 . "<AND") (0 . "K*") (0 . "~Ks*") (-4 . "AND>"))) seems to work well so far, thanks for suggesting that. I was hoping for a more specific solution (if one exists). But the above code does work. Thanks for the help everyone. 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.