Home Search

DriveWorks Pro 22
Set View Relative Position

Send Feedback

Set View Relative Position

This Task sets the position of a view relative to its sheet or relative to another view.

For example:

  • Set the top-left corner of view 1 to be next to the bottom-right corner of view 2

    Or

  • Set the bottom-center of view 1 to be aligned with the bottom-center of sheet 1.

Properties

Property NameDescription
General
(Name)The unique name for this task.
Position
AxisSpecifies which axis to drive the view along. For example, specifying XOnly will cause DriveWorks to only position the view along the X-axis, and maintain the view's current Y position.
X OffsetThe relative distance of the two anchor points along the X axis. In document units, positive values are driven to the right, negative values to the left.

0 (zero) will align the anchor points.

Offsets are required to be in the units of the document being driven.
Y OffsetThe relative distance of the two anchor points along the Y axis. In document units, positive values are driven to up, negative values down.

0 (zero) will align the anchor points.

Offsets are required to be in the units of the document being driven.
Reference
Reference Horizontal AnchorThe horizontal anchor of the view or sheet to position from.
Reference Vertical AnchorThe vertical anchor of the view or sheet to position from.
Reference View or Sheet NameThe name of the view or sheet to position from.
Target
Target Horizontal AnchorThe horizontal anchor of the view to position.
Target Vertical AnchorThe vertical anchor of the view to position.
Target View NameThe name of the view to position.

This task will fail when:

  • Any property values are invalid
  • The Target view is the same as the Reference view
  • The view or sheet cannot be found
  • Target and reference are not on the same sheet.

Example

When this task is added the properties are static by default.

See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.

Property NameExample RuleMeaning
AxisBothWill position the view along the X and Y axis
X Offset20Will position the view 20 (document units) along the X axis from the Reference Horizontal Anchor.
Y Offset35Will position the view 35 (document units) along the Y axis from the Reference Vertical Anchor.
Reference Horizontal AnchorRightThe anchor reference will be from the right (of the Reference View or Sheet Name).
Reference Vertical AnchorBottomThe anchor reference will be from the bottom (of the Reference View or Sheet Name).
Reference View or Sheet Name"Drawing View1"Drawing View1 will be used to position the Target from.
Target Horizontal AnchorLeftThe anchor of the target will be from the left (of the Reference View or Sheet Name).
Target Vertical AnchorTopThe anchor of the target will be from the top (of the Reference View or Sheet Name).
Target View Name"Drawing View2"Drawing View2 will be positioned.

Generation Sequence

This Task can be added to the following Generation Sequence(s):

  • Pre Drive (will be run before the Main Drive Sequence)
  • Post Drive (will be run after the Main Drive Sequence)