## AlignedAxisConstraint

Object Hierarchy

### Inheritance

###

SIObject

ProjectItem

Property

Constraint

AlignedAxisConstraint

### Description

The AlignedAxisConstraint object represents a AxisAligned constraint e.g. Direction, Position constraint.

### Methods

AddCustomOp | AddICEAttribute | AddScriptedOp | AddScriptedOpFromFile
AnimatedParameters2 | BelongsTo | EvaluateAt | GetICEAttributeFromName
IsA | IsAnimated2 | IsClassOf | IsEqualTo
IsKindOf | IsLocked | IsSelected | LockOwners
RemoveICEAttribute | SetAsSelected | SetCapabilityFlag | SetLock
TaggedParameters | UnSetLock |  |

### Properties

Application | Branch | BranchFlag | Capabilities
Categories | Constrained | Constraining | EvaluationID
Families | FullName | Help | HierarchicalEvaluationID
ICEAttributes | LockLevel | LockMasters | LockType
Model | Name | NestedObjects | ObjectID
Origin | OriginPath | Owners | PPGLayout
Parameters | Parent | Parent3DObject | Selected
Singleton | Type | UpVectorReference | UpVectorReference

### Examples

#### VBScript Example

    'The following code illustrates how to create an axis aligned constraint

    	' and set its upvector reference.

    set oRoot = Application.ActiveProject.ActiveScene.Root

    set oNull = oRoot.AddNull

    '    set oNull.Kinematics.Local.Translate -6.546, 4.815, -0.482

    set oNull2 = oRoot.AddNull

    '    set oNull2.Kinematics.Local.Translate 6.624, 5.907, -0.591

    set oGrid = oRoot.AddGeometry("Grid","MeshSurface")

    set oDirectionCns = oGrid.Kinematics.AddConstraint("Direction", oNull )

    set oDirectionCns.UpVectorReference = oNull2

### See Also

Kinematics Kinematics.AddConstraint