2.2.4.41.3 Selection::Objects

Description

To get the selected Origin object by index.

Syntax

OriginObject Objects( int nIndex = 0 )

Parameters

nIndex
the object index in selection collection.

Return

Examples

EX1

void Selection_Objects_Ex1()
{
    OriginObject OrgObj;
    OrgObj = Selection.Objects(0);
    
    GraphObject go;
    go = (GraphObject)OrgObj;
    out_str(go.GetName());
}

Remark

See Also

Header to Included

origin.h