GetSelectionManager Method (IDocument) Send Feedback
See Also  Example
SelManager[out]
ISelectionManager
Gets the interface for selecting entities, which makes the currently and previously selected entity available.

Syntax

Visual Basic 
Function GetSelectionManager() As SelectionManager
C# 
SelectionManager GetSelectionManager()
JavaScript 
GetSelectionManager() : dsSelectionManager
COM native C++ 
HRESULT GetSelectionManager(
   ISelectionManager** SelManager
)  
C++ 
DSRESULT GetSelectionManager(
   dsSelectionManager** SelManager
)  

Parameters

SelManager[out] or Return Value
ISelectionManager

Example

This code snippet shows how to get an ISelectionManager object.

COM native C++  

    ISelectionManagerPtr dsSelManager( dsDoc->GetSelectionManager() );
    
if( NULL == dsSelManager )
    {
        ::AfxMessageBox( L
"Failed to get Selection Manager of the current document." );

        
return;
    }

Example

 

See Also

Availability

DraftSight V1R1