SOLIDWORKS PDM Professional API Help Send Feedback
SetSel Method (IEdmTaskProperties)
See Also 
EPDM.Interop.epdm Namespace > IEdmTaskProperties Interface : SetSel Method (IEdmTaskProperties)


poSel
Array of EdmTaskSel structures; one structure for each selected object
Sets the selection of objects on which to execute this task.

Syntax

Visual Basic 
Sub SetSel( _
   ByVal poSel() As EdmTaskSel _
) 
C# 
void SetSel( 
   EdmTaskSel[] poSel
)
C++/CLI 
void SetSel( 
&   array<EdmTaskSel>^ poSel
) 

Parameters

poSel
Array of EdmTaskSel structures; one structure for each selected object

Remarks

The user can select the objects on which the task performs from a dialog box that is displayed when the task add-in calls IEdmAddIn5::OnCmd. The hook, EdmCmdType.EdmCmd_TaskLaunch, must be previously registered by calling IEdmCmdMgr5::AddHook in your implementation of IEdmAddIn5::GetAddInInfo. The add-in returns the user's selections in the EdmCmdData structures that are returned by IEdmAddIn5::OnCmd.

You can set a selection of objects that should always be passed to the task instances by calling this method.

Call IEdmTaskProperties::GetSel to get the objects set by this method.

Return codes:

  • S_OK: The method successfully executed.
 

See Also

Availability

SOLIDWORKS PDM Professional 2010