Click or drag to resize

EdmObjectFactoryMockEdmCmdDataFromFile Method

Creates the EdmCmdData struct from the specified file.

Namespace:  CADSharpTools.Testing
Assembly:  CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntax
public static EdmCmdData MockEdmCmdDataFromFile(
	IEdmFile5 file,
	EdmCmdType cmdType,
	Object extraObject = null,
	string affectedConfigurationName = "Default",
	string[] configurationNames = null,
	IEdmState5 sourceState = null,
	IEdmState5 targetState = null,
	IEdmTransition5 transition = null,
	mEdmCmdNode mEdmCmdNode = null,
	int fileCardId = 0,
	IEdmUser5 user = null
)

Parameters

file
Type: IEdmFile5
Must provided for all commands.
cmdType
Type: EdmCmdType
Command type.
extraObject (Optional)
Type: SystemObject
Extra object for the mpoExtra field in the Command struct.
affectedConfigurationName (Optional)
Type: SystemString
affected configuration. Must be provided for EdmCmd_PreState, EdmCmd_PostState
configurationNames (Optional)
Type: SystemString
affected configuration names. Must be provided for EdmCmd_CardButton
sourceState (Optional)
Type: IEdmState5
Must be provided for EdmCmd_PreState, EdmCmd_PostState
targetState (Optional)
Type: IEdmState5
Must be provided for EdmCmd_PreState, EdmCmd_PostState
transition (Optional)
Type: IEdmTransition5
Must be provided for EdmCmd_PreState, EdmCmd_PostState
mEdmCmdNode (Optional)
Type: CADSharpTools.TestingmEdmCmdNode
Access a file upon changing state.
fileCardId (Optional)
Type: SystemInt32
Id of the affected file card.
user (Optional)
Type: IEdmUser5
User performing the command. Must be provided for EdmCmd_PreState, EdmCmd_PostState

Return Value

Type: EdmCmdData
See Also