Click or drag to resize

DimensionExSetDirection Method

Sets the direction of the macro feature dimension.

Namespace:  SolidWorks.Interop.sldworks
Assembly:  CodeStack.SwEx.MacroFeature (in CodeStack.SwEx.MacroFeature.dll) Version: 0.5.3.0 (0.5.3.0)
Syntax
public static void SetDirection(
	this IDimension dim,
	Point originPt,
	Vector dir,
	double length,
	Vector extDir = null
)

Parameters

dim
Type: IDimension
Pointer to dimension. Usually retrieved from Dimension
originPt
Type: CodeStack.SwEx.MacroFeature.DataPoint
Dimension starting attach point
dir
Type: CodeStack.SwEx.MacroFeature.DataVector
Direction of the dimension
length
Type: SystemDouble
Length of the dimension (usually equal to its value)
extDir (Optional)
Type: CodeStack.SwEx.MacroFeature.DataVector
Optional direction of extension line

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDimension. 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
See Also