News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

getattr select parameter

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

Previous topic - Next topic

0 Members and 0 Guests 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