|
EdmObjectFactoryMockEdmCmd Method
|
Mocks the EdmCmd struct.
Namespace:
CADSharpTools.Testing
Assembly:
CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntaxpublic static EdmCmd MockEdmCmd(
EdmCmdType cmdType,
IEdmVault5 vault,
string comment = "",
int parentHandle = 0,
int currentFolderID = 0,
int CommandID = 0,
EdmRefreshFlag refreshFlags = EdmRefreshFlag.EdmRefresh_Nothing,
bool cancel = false,
bool silentMode = false,
Object extraObject = null
)
Public Shared Function MockEdmCmd (
cmdType As EdmCmdType,
vault As IEdmVault5,
Optional comment As String = "",
Optional parentHandle As Integer = 0,
Optional currentFolderID As Integer = 0,
Optional CommandID As Integer = 0,
Optional refreshFlags As EdmRefreshFlag = EdmRefreshFlag.EdmRefresh_Nothing,
Optional cancel As Boolean = false,
Optional silentMode As Boolean = false,
Optional extraObject As Object = Nothing
) As EdmCmd
Parameters
- cmdType
- Type: EdmCmdType
Command type. - vault
- Type: IEdmVault5
Vault object. - comment (Optional)
- Type: SystemString
Information specific to the type of command or hook. - parentHandle (Optional)
- Type: SystemInt32
parent handle. - currentFolderID (Optional)
- Type: SystemInt32
ID of the active folder. Used for menu commands (meCmdType = EdmCmdType.EdmCmd_Menu). - CommandID (Optional)
- Type: SystemInt32
ID of the invoked command. - refreshFlags (Optional)
- Type: EdmRefreshFlag
Flags that cause SolidWorks Enterprise PDM to refresh elements of the user interface. Bitmask. - cancel (Optional)
- Type: SystemBoolean
True to prevent a command from running using EdmCmd_PreXxxx hooks, false to disallow canceling the command. - silentMode (Optional)
- Type: SystemBoolean
True to execute asynchronously in the background, false to run interactively from the user interface - extraObject (Optional)
- Type: SystemObject
Pointer to an object containing command-specific information.
Return Value
Type:
EdmCmdCommand struct.
See Also