C++
ACCORE_PORT Acad::ErrorStatus setAllowDuplicateSelection( AcApDocument * pDoc, bool flag );
File
acssgetfilter.h
Description
This function allows and disallows duplicate entities in selection sets. If flag is true, a reference counter is incremented that, when non-zero, enables duplicate selection. If flag is false, the counter is decremented.
This setting impacts the PICKFIRST selection set, the PREVIOUS selection set, and AutoCAD commands that acquire selection sets from the user.
An application that enables duplicate selections is responsible for removing duplicate entries in the AcEdSSGetFilter::endSSGet() notification if the current command cannot handle duplicate entries.
Returns Acad::eOk if successful.
Returns Acad::eInvalidContext if flag is false and duplicate selection is already disabled.
Returns Acad::eInvalidInput if pDoc is NULL.
Parameters
Parameters | Description |
---|---|
pDoc | Input pointer to the document for which duplicate selections should be allowed |
flag | Input boolean indicating whether to allow duplicate selection |