Click or drag to resize

EdmObjectFactoryMockEdmCmd Method

Mocks the EdmCmd struct.

Namespace:  CADSharpTools.Testing
Assembly:  CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntax
public 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
)

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: EdmCmd
Command struct.
See Also