Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
PICKADD
Syntax
C++
OdInt16 PICKADD;
Type
OdInt16
Initial value
2
Read-Only
No
Saved In
Registry
Versions
R12+

 

The PICKADD variable controls whether subsequent selections replace the current selection set or add to it; the variable takes the following values: 

 

Value
Description
0
The objects and subobjects most recently selected become the selection set. Previously selected objects and subobjects are removed from the selection set. Add more objects or subobjects to the selection set by pressing SHIFT while selecting.
1
Each object and subobject selected, either individually or by windowing, is added to the current selection set. To remove objects or subobjects from the selection set, press the SHIFT key while selecting.
2
Each object and subobject selected, either individually or by windowing, is added to the current selection set and the objects remains selected after the SELECT command. To remove objects or subobjects from the selection set, press the SHIFT key while selecting.

 

Access Methods
OdDbDatabase::getSysVar()
OdDbDatabase::setSysVar()
 
OdDbHostAppServices::getPICKADD()
OdDbHostAppServices::setPICKADD()

 

For example, to get the value:

OdRusBufPtr pRb = pDb->getSysVar(L"PICKADD"); OdInt16 mode = pRb->getInt16(); odPrintConsoleString(L"nSelection mode = %d", mode); // or // odPrintConsoleString(L"nSelection mode = %d", pDb->appServices()->getPICKADD());

For example, to set the value:

OdRusBufPtr pRb = OdResBuf::newRb(OdResBuf::kRtInt16, 1); pDb->setSysVar(L"PICKADD", pRb); // or // pDb->appServices()->setPICKADD(1);

 

File: SysVarDefs.h 

Module: API Reference 

Copyright © 2002-2022. Open Design Alliance All rights reserved.