Author Topic: How filters a selection chart "Entity name"?  (Read 2679 times)

0 Members and 1 Guest are viewing this topic.

hunterxyz

  • Guest
How filters a selection chart "Entity name"?
« on: February 28, 2007, 10:59:47 AM »
How filters a selection chart "Entity name"?
I have selected a "Entity name",
was using SSGET two selections things way to make an anthology.
But filtered the anthology in "P" actually to appear NIL.
Asked how should process filters same "Entity name",
and in anthology position?

(SETQ ENA (CAR (ENTSEL "\n selection ENAME:")))
_$ <Entity name: 7ef76308>

(SETQ PTA (GETPOINT "\n POINT A:"))
(SETQ PTB (GETPOINT PTA "\n POINT B:"))
(SETQ SS (SSGET "F" (LIST PTA PTB)))
(SETQ LL (LIST ASSOC 5 (ENTGET ENA))))
(SETQ SOK (SSGET "P" LL))

_$ ((5 . "548"))
_$ nil
Thank you for your offered to help.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How filters a selection chart "Entity name"?
« Reply #1 on: March 01, 2007, 05:14:12 AM »
The ssget function recognizes all group codes except entity names (group –1), handles (group 5), and xdata codes (groups greater than 1000)


Do you know that DXF 5 is for the Entity handle, which will ONLY apply to ONE entity .. in this case the one saved in variable ENA ?


Because you are filtering on the handle then (SETQ SOK (SSGET "P" LL)) WILL return nil ..


However, using DXF 8 for layer

(SETQ LL (LIST (ASSOC 8 (ENTGET ENA))))
(SETQ SOK (SSGET "P" LL))

you MAY get a match, if one of the menbers of SS is on the SAME layer as ENA.

kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How filters a selection chart "Entity name"?
« Reply #2 on: March 03, 2007, 09:38:02 PM »
did this help ?
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

hunterxyz

  • Guest
Re: How filters a selection chart "Entity name"?
« Reply #3 on: March 03, 2007, 10:46:26 PM »
THANK