Click or drag to resize

ExtensionSetDataCardVariable2 Method

Sets the value for the specified variable and refreshes the data card preview.

Namespace:  CADSharpTools.PDM
Assembly:  CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntax
public static MethodReturn SetDataCardVariable2(
	this IEdmFile5 file,
	string variableName,
	Object value,
	string configurationName = "@",
	bool allConfigurations = false
)

Parameters

file
Type: IEdmFile5
File object.
variableName
Type: SystemString
variable name.
value
Type: SystemObject
Value of the variable.
configurationName (Optional)
Type: SystemString
Configuration name.
allConfigurations (Optional)
Type: SystemBoolean
Apply the value to all configurations.

Return Value

Type: MethodReturn
MethodReturn

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmFile5. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Specified file must be checked out.
See Also