AssemblyJointDefinition Object


Description

The AssemblyJointDefinition is not an assembly joint but is an object that contains all of the information that defines an assembly joint. It is used to create new joints and to edit existing joints.

Methods

Name Description
Copy Method that creates a copy of this AssemblyJointDefinition object. The new AssemblyJointDefinition is independent of any assembly joint. It can be edited and used as input to edit an existing joint or to create a new assembly joint.
SetOriginOneAsBetweenTwoFaces Method that sets assembly joint origin as between two faces origin for OriginOne.
SetOriginOneAsInfer Method that sets assembly joint origin as infer origin for OriginOne.
SetOriginOneAsOffset Method that sets assembly joint origin as offset origin for OriginOne.
SetOriginTwoAsBetweenTwoFaces Method that sets assembly joint origin as between two faces origin for OriginTwo.
SetOriginTwoAsInfer Method that sets assembly joint origin as infer origin for OriginTwo.
SetOriginTwoAsOffset Method that sets assembly joint origin as offset origin for OriginTwo.

Properties

Name Description
AlignmentOne
AlignmentTwo
AngularPosition
AngularPositionEndLimit
AngularPositionStartLimit
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
FlipAlignmentDirection
FlipOriginDirection
Gap
HasAngularPositionLimits
HasLinearPositionEndLimit
HasLinearPositionStartLimit
JointType
LinearPosition
LinearPositionEndLimit
LinearPositionStartLimit
OriginOne
OriginOneDefinitionType Read-only property that returns the definition type of the first joint origin.
OriginOneReferencedFaces Read-only property that returns the two referenced planar faces to define the projecting plane for OriginOne. This returns Nothing if the OriginOneDefinitonType is not equal to kBetweenTwoFacesOriginDefinitionType.
OriginOneXOffset Read-only property that returns the offset of the OriginOne along origin X-axis direction. This returns Empty if the OriginOneDefinitonType is not equal to kOffsetOriginDefinitionType.
OriginOneXOffsetReferencedGeometry Read-only property that returns the referenced geometry that used to define the offset of the OriginOne along X-axis direction. This returns Nothing if the offset is not referencing any geometry.
OriginOneYOffset Read-only property that returns the offset of the OriginOne along origin Y-axis direction. This returns Empty if the OriginOneDefinitonType is not equal to kOffsetOriginDefinitionType.
OriginOneYOffsetReferencedGeometry Read-only property that returns the referenced geometry that used to define the offset of the OriginOne along Y-axis direction. This returns Nothing if the offset is not referencing any geometry.
OriginTwo
OriginTwoDefinitionType Read-only property that returns the definition type of the second joint origin.
OriginTwoReferencedFaces Read-only property that returns the two referenced planar faces to define the projecting plane for OriginTwo. This returns Nothing if the OriginTwoDefinitonType is not equal to kBetweenTwoFacesOriginDefinitionType.
OriginTwoXOffset Read-only property that returns the offset of the OriginTwo along origin X-axis direction. This returns Empty if the OriginTwoDefinitonType is not equal to kOffsetOriginDefinitionType.
OriginTwoXOffsetReferencedGeometry Read-only property that returns the referenced geometry that used to define the offset of the OriginTwo along X-axis direction. This returns Nothing if the offset is not referencing any geometry.
OriginTwoYOffset Read-only property that returns the offset of the OriginTwo along origin Y-axis direction. This returns Empty if the OriginTwoDefinitonType is not equal to kOffsetOriginDefinitionType.
OriginTwoYOffsetReferencedGeometry Read-only property that returns the referenced geometry that used to define the offset of the OriginTwo along Y-axis direction. This returns Nothing if the offset is not referencing any geometry.
Parent Read-only property that returns the parent AssemblyJoint object. This returns Nothing when the AssemblyJointDefinition is not associated with an AssemblyJoint object.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

AssemblyJoint.Definition, AssemblyJointDefinition.Copy, AssemblyJointProxy.Definition, AssemblyJoints.CreateAssemblyJointDefinition

Samples

Name Description
Create planar AssemblyJoint with offset to origins This sample demonstrates how to create a planar AssemblyJoint with offset to the OriginOne and OriginTwo.
Create rotational assembly joint

This sample demonstrates creating an assembly joint. It connects the midpoints of the edges of two faces using a rotational joint. To do this it first creates a geometry intent object of the midpoint of the edge and then creates another intent using the face and the midpoint intent. It does this to create to midpoint intents which it then uses to create the rotational connection.

The sample uses and existing part that must be set up to allow it to work correctly. To create the sample part you can use any part that has a planar face and a linear edge connected to that planar face. A simple box is sufficient. In this part Add a mate iMate to the planar face and rename the iMate to "Face1". Also add a mate iMate to a linear edge that is on the face previously named and rename this iMate to "Edge1". Save the part to "C:\Temp\SamplePart.ipt" or any other name and edit the code below to reference the file. You can then run the sample code which will create a new assembly, insert two instances of the part and create a rotational connection between them. Then it will animation the rotation by driving the connection.

Version

Introduced in version 2014