Share

acedGetCurrentSelectionSet

C++

Acad::ErrorStatus acedGetCurrentSelectionSet(
    AcDbObjectIdArray& sset
);

File

aced.h

Description

This function fills sset in with the object IDs of all entities in the current selection set within AutoCAD.

The "current selection set" may be one of the following: a pickfirst set, a selection set selected by the select command or any other command that does a selection (that is, similar to the "Previous" selection option), or the most recent set from an ssget.

If a pickfirst set is available it will always be used. If no pickfirst set is available, then whichever of the other two types is available will be used. If both of the other two types are available, then whichever was most recently created will be used.

If a pickfirst selection set is "selected" by a call to this function, then the entity highlighting and grips will disappear just as they would when any AutoCAD command uses a pickfirst selection set.

If an ssget type of selection is "selected" by a call to this function, then sset will essentially be a copy of the selection set and the original ssget selection set will still be valid.

Only certain AutoCAD commands create a selection set that can be found by acdbGetCurrentSelectionSet(). These commands are listed below:

ACISOUT AMECONVERT ARRAY ATTEXT AUDIT
BHATCH BMPOUT CHANGE CHPROP CONVERT
CONVERTPOLY COPY COPYCLIP CUTCLIP DIVIDE
DVIEW DXFOUT (partial) ERASE EXPLODE EXTEND
EXTRUDE GROUP HATCH HIDE INTERFERE
INTERSECT LIST MASSPROP MEASURE MIRROR
MOVE MVIEW OOPS PEDIT REGION
REVOLVE ROTATE SCALE SECTION SELECT
SLICE SPELL SPLINE STLOUT STRETCH
SUBTRACT TRIM UNION VPVIS WBLOCK
WMFOUT XCLIP

Note that the OOPS command, a Button 1 down on selected entity, and an implied move, within and across documents, also sets the selection set.

Parameters

Parameters Description
sset Output filled in with object IDs of all objects in current selection set

Was this information helpful?