Share

IManagedConstraints.AddUcsToUcs Method

Adds or modifies a constraint set. This consists of three flush constraints between two items that are either User Coordinate Systems (UCS's), component origins, or the assembly origin.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 29.0

Syntax

VB

Function AddUcsToUcs ( 
	constraintName As String,
	component1 As ComponentArgument,
	ucsName1 As String,
	component2 As ComponentArgument,
	ucsName2 As String,
	Optional xOffset As Object = Nothing,
	Optional yOffset As Object = Nothing,
	Optional zOffset As Object = Nothing,
	Optional linkedConstraintNames As String() = Nothing
) As IManagedConstraint

C#

IManagedConstraint AddUcsToUcs(
	string constraintName,
	ComponentArgument component1,
	string ucsName1,
	ComponentArgument component2,
	string ucsName2,
	Object xOffset = null,
	Object yOffset = null,
	Object zOffset = null,
	string[] linkedConstraintNames = null
)

Parameters

constraintName
Type: System.String
The constraint name.
component1
Type: Autodesk.iLogic.Types.ComponentArgument
The occurrence that contains the first entity. Examples: "Part:1" or {"Subassembly:1", "Part:1"}.
ucsName1
Type: System.String
The name of the UCS in the first component. Use "origin" to refer to the origin instead of a UCS.
component2
Type: Autodesk.iLogic.Types.ComponentArgument
The occurrence that contains the second entity. Examples: "Part:2" or {"Subassembly:2", "Part:2"}.
ucsName2
Type: System.String
The name of the UCS in the second component. Use "origin" to refer to the origin instead of a UCS.
xOffset (Optional)
Type: System.Object
Offset in the X direction (between the YZ planes). Default = 0.
yOffset (Optional)
Type: System.Object
Offset in the Y direction (between the XZ planes). Default = 0.
zOffset (Optional)
Type: System.Object
Offset in the Z direction (between the YZ planes). Default = 0.
linkedConstraintNames (Optional)
Type:  System.String[]
Optional names to use for the two linked constraints. If this is not specified, names will be generated.

Return Value

Type: IManagedConstraint
The constraint.

See Also

Reference

Was this information helpful?