Click or drag to resize

IManagedConstraintsAddRotate Method

Adds or modifies a rotate-rotate or rotate-translate assembly constraint.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 23.0
Syntax
Function AddRotate ( 
	constraintName As String,
	component1 As ComponentArgument,
	entityName1 As String,
	component2 As ComponentArgument,
	entityName2 As String,
	Optional ratio As Object = Nothing,
	Optional forwardDirection As Boolean = false,
	Optional asRotateTranslate As Boolean = false,
	Optional biasPoint1 As Object = Nothing,
	Optional biasPoint2 As Object = Nothing
) As IManagedConstraint

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"}.
entityName1
Type: SystemString
The first entity name. This can be named or work geometry.
component2
Type: Autodesk.iLogic.TypesComponentArgument
The occurrence that contains the second entity. Examples: "Part:2" or {"Subassembly:2", "Part:2"}.
entityName2
Type: SystemString
The second entity name. This can be named or work geometry.
ratio (Optional)
Type: SystemObject
Optional input that defines the distance of translation for every revolution of the rotated occurrence. This can be either a numeric value or a string.
forwardDirection (Optional)
Type: SystemBoolean
Optional input Boolean that defines the direction of translation with respect to the rotation direction relative to the axes directions.
asRotateTranslate (Optional)
Type: SystemBoolean
Optional, True means that will be created rotate-translate constraint, otherwise rotate-rotate constraint.
biasPoint1 (Optional)
Type: SystemObject
Optional input object that is used to help in determining the initial position of the first occurrence. The occurrences are repositioned in an attempt to make the two bias points coincident.
biasPoint2 (Optional)
Type: SystemObject
Optional input object that is used to help in determining the initial position of the second occurrence. The occurrences are repositioned in an attempt to make the two bias points coincident.

Return Value

Type: IManagedConstraint
The constraint.
See Also