| 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
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.
- S_OK: The method successfully executed.
SOLIDWORKS PDM Professional 2010