Author Topic: Order of SSGET Filter List  (Read 1531 times)

0 Members and 1 Guest are viewing this topic.

mailmaverick

  • Bull Frog
  • Posts: 493
Order of SSGET Filter List
« on: May 10, 2014, 08:06:25 AM »
Is it important to give Filter List in SSGET in a particular order ?

For example :
(cons 0 "LINE") (cons 410 "MODEL") (cons 8 "ABC")
(cons 410 "MODEL") (cons 0 "LINE") (cons 8 "ABC")
(cons 8 "ABC") (cons 0 "LINE") (cons 410 "MODEL")

Are all three alternatives equal ?


irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: Order of SSGET Filter List
« Reply #1 on: May 10, 2014, 08:32:46 AM »
So far from my experience, the order doesn't really matter. I haven't come across any situation where the order causes strange stuff - even with multiple 100 codes it seems to work fine.

I guess it's because the list is used in an AND filter. I.e. one of the DXF codes in the entity MUST clear every one of those tests in the filter. But when you start using the -3 codes (i.e. more complex boolean stuff) the boolean logic imposes its own precedence - so then order would be of consequence.

Edit: The above sentence is ambiguous. Here's a better one:
Every item (or group of booleans) in the filter list must be found in at least one of the entity's DXF codes.
« Last Edit: May 10, 2014, 08:36:48 AM by irneb »
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.