Search Results for

    Show / Hide Table of Contents

    Method CreateFrameOnFrameConstraintWithXYOffsets

    CreateFrameOnFrameConstraintWithXYOffsets(ElementId, SmartFrame3D, SmartFrame3D, SmartReal, bool, SmartReal, bool, SmartReal, bool, SmartReal, bool, SmartReal, bool, SmartReal, bool, bool)

    Creates a "frame on frame" positioning constraint with X and Y offsets.

    Declaration
    [OperationContract]
    [AvailableSinceVersion(7, 9, 0, 0)]
    ElementId CreateFrameOnFrameConstraintWithXYOffsets(ElementId inPositioningId, SmartFrame3D inSourceFrame, SmartFrame3D inDestinationFrame, SmartReal inXOffsetDistance, bool inIsXOffsetReversed, SmartReal inYOffsetDistance, bool inIsYOffsetReversed, SmartReal inZOffsetDistance, bool inIsZOffsetReversed, SmartReal inXRotationAngle, bool inIsXRotationReversed, SmartReal inYRotationAngle, bool inIsYRotationReversed, SmartReal inZRotationAngle, bool inIsZRotationReversed, bool inRotatesZYX)
    Parameters
    Type Name Description
    ElementId inPositioningId

    Identifier of the positioning operation that will contain the constraint.

    SmartFrame3D inSourceFrame

    Frame on source occurrence.

    SmartFrame3D inDestinationFrame

    Destination frame.

    SmartReal inXOffsetDistance

    Offset distance of the source frame along the destination frame X direction.

    bool inIsXOffsetReversed

    Whether the X offset is reversed.

    SmartReal inYOffsetDistance

    Offset distance of the source frame along the destination frame Y direction.

    bool inIsYOffsetReversed

    Whether the Y offset is reversed.

    SmartReal inZOffsetDistance

    Offset distance of the source frame along the destination frame Z direction.

    bool inIsZOffsetReversed

    Whether the Z offset is reversed.

    SmartReal inXRotationAngle

    Rotation angle of the source frame around its X axis.

    bool inIsXRotationReversed

    Whether the rotation around X is reversed.

    SmartReal inYRotationAngle

    Rotation angle of the source frame around its Y axis.

    bool inIsYRotationReversed

    Whether the rotation around Y is reversed.

    SmartReal inZRotationAngle

    Rotation angle of the source frame around its Z axis.

    bool inIsZRotationReversed

    Whether the rotation around Z is reversed.

    bool inRotatesZYX

    Rotates around Z then Y then X instead of X then Y then Z.

    Returns
    Type Description
    ElementId

    Identifier of the created constraint.

    Remarks

    StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.

    This method is available since v7.9.

    In this article
    Back to top
    • Term of use
    • Corporate information
    • Privacy Policy - GDPR

    Copyright ©2025 TopSolid - All rights reserved.