Professional Documents
Culture Documents
Set Annotation Position by Percentage
Set Annotation Position by Percentage
The Set Annotation by Percentage Position Generation Task sets the XY position of an annotation.
Prior to DriveWorks 20, this appeared in the Toolbox as Set Annotation Position.
Existing implementations that use this Task will not be affected by this rename.
This ensures all views are resized and positioned before the Annotations are driven.
Properties
Sheet or View Name The name of the sheet (or view) the annotation
belongs to, or the address if the view is not on the
active sheet (for example Drawing View2@Sheet4).
(1) The SOLIDWORKS Address Style for Model Dimensions linked to Assemblies will take the
form D1@Distance1@AssemblyName.Assembly.
The PartName or AssemblyName in this address refers to the file name of the part or
subassembly that contains the Model Dimension.
When Annotations are linked to a Detail or Section view, the following applies:
Annotation Name
The View number (not the View name) is required in the address of the annotation.
For example:
RD1@Drawing View2@<DrawingName>.Drawing
The View number can be found by right clicking the View name from the SOLIDWORKS
feature manager.
Alternatively to see the exact address, refer to How To Find The Annotation Name below.
For example:
The above examples of the ‘Annotation Name’ and ‘Sheet or View Name’ Properties will work for
single sheet or multi sheet SOLIDWORKS Drawings.
4. The dimension address will appear in the ‘Address’ field of the DriveWorks Task Pane
5. You can copy and paste this into DriveWorks for use in rules
You do not need to Capture the Annotation to use the Set Annotation Position Generation Task
The Annotation Name Property can also end in .Assembly (if the Annotation is an Assembly
dimension, such as a Distance Mate value) or .Drawing (if the annotation is a Reference
Dimension).
The Part names in the Annotation Name Property need to be the final generated models file
names, not the Master file names.
For example:
By default, DriveWorks gives each model the File Name Rule DWSpecification meaning that your
models will generate with the following naming structure;
This means the Rule for the Annotation Name property would be;
The following are two further examples of potential Annotation Name property rules in combination
with the related Model File Name Rules:
Example 1
Example 2
Model File Name Rule => "*" & DWSpecificationId & "*"
Annotation Name Property Rule => "D1@Sketch1@" & DWSpecificationId & " MasterName.Part"
For more information on Model File Name Rules: Concept: File Naming
Example 1
DriveWorks will use the full result to select the required Annotation.
Example 2
DriveWorks will use the full result to select the required Annotation.
Example 3
DriveWorks will compare this with the name component of the address to select the required
Annotation.
Example 4
Annotation Name Property Rule Result = RD1@Drawing View1@{Drawing File Name Result}.Drawing
DriveWorks will use the full result to select the required Annotation.
The ‘Axis’ property determines which of the ‘X Value’ and ‘Y Value’ properties are used to position the
Annotation.
Both Will use both the ‘X Value’ and the ‘Y Value’ properties
to position the Annotation
The ‘X Value’ and ‘Y Value’ are expressed as percentages. For example, X Value = 50, this will position
the Annotation half way along the Drawing View or Sheet.
The ‘X Value’ and ‘Y Value’ properties accept negative values and values greater than 100.
X Value = 0, Y Value = 0, is the bottom left hand corner of the Sheet or View.
The image below shows how positive and negative percentage values relate to a Drawing View.
If an Annotation is not attached to a Drawing View, the ‘X Value’ and ‘Y Value’ are in relation to the
entire sheet.
If an Annotation is attached to a Drawing View the ‘X Value’ and ‘Y Value’ are in relation to the
Bounding box of the Drawing View.
This Task works best when placed in Post-Drive Tasks. All views will have been resized and
repositioned before the Annotations are positioned.
There is a Tech Tip example Project that can be downloaded from the Tech Tip Portal on the
DriveWorks Community Website.
This Tech Tip can be used as a reference for using the Set Annotation Position by Percentage
Generation Task.