getattr select parameter

Started by bdeck, August 29, 2008, 12:25:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bdeck

Dempsey has found a critically important undocumented feature of the "select" parameter of the getattr statement.
 
          getselect entno, type, select

          where select= CurrenSeletionFlagValue | PriorSelectionFlagValue

          where  CurrenSeletionFlagValue is 0 or 1
          where  PriorSelectionFlagValue is 0 or 2

Since DC has no bitwise logic operators, here are 2  solutions for reading the current selection fllag value:

      getselect entno, type, select
      MyCodeCurrentSelectionFlagValue = select mod 2

or

     Alias ENT_SELECTED  &H010C
     entity ent
     query ent_selected,  MyCodeCurrentSelectionFlagValue

Also, there does not appear to be any documented way to set a working prior selection flag in BASICCAD.


For more info see: http://forum.designcad.com/index.php?topic=1545.0