Jump to content

SSGET Filter Failing for Particular Object Type


Recommended Posts

Posted

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

Posted

Does this work?:

(ssget "_X" '((0 . "ACAD_PROXY_ENTITY") (1 . "Ks_VolBody")))

Posted

Hey Roy-043,

 

Thanks a lot for the reply.

 

Unfortunately (ssget "_X" '((0 . "ACAD_PROXY_ENTITY") (1 . "Ks_VolBody"))) returns 'nil'.

Posted

Maybe it has changed, but group 0 has historically been UPPERCASE . Did you try that ?

 

-David

Posted

Thanks for the reply David.

 

I've just tried UPPERCASE versions and they still return nil.

Posted

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.

Posted

Random shot in the dark guess:

 

 

(ssget "_X" '((0 . "K*,~Ks*")))

Posted

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>")))

Posted

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.

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