IManagedConstraintsAddUcsToUcs 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: 23.0
Syntax 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
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: SystemString
The constraint name. - component1
- Type: Autodesk.iLogic.TypesComponentArgument
The occurrence that contains the first entity. Examples: "Part:1" or {"Subassembly:1", "Part:1"}. - ucsName1
- Type: SystemString
The name of the UCS in the first component. Use "origin" to refer to the origin instead of a UCS. - component2
- Type: Autodesk.iLogic.TypesComponentArgument
The occurrence that contains the second entity. Examples: "Part:2" or {"Subassembly:2", "Part:2"}. - ucsName2
- Type: SystemString
The name of the UCS in the second component. Use "origin" to refer to the origin instead of a UCS. - xOffset (Optional)
- Type: SystemObject
Offset in the X direction (between the YZ planes). Default = 0. - yOffset (Optional)
- Type: SystemObject
Offset in the Y direction (between the XZ planes). Default = 0. - zOffset (Optional)
- Type: SystemObject
Offset in the Z direction (between the YZ planes). Default = 0. - linkedConstraintNames (Optional)
- Type: SystemString
Optional names to use for the two linked constraints.
If this is not specified, names will be generated.
Return Value
Type:
IManagedConstraintThe constraint.
See Also