This document describes the different kinds of rules that apply to parameters that can be captured from drawings.
The file name rule is used to determine the name of the driven drawing.
Rule | Meaning |
---|---|
Creates a new drawing with the same name as its parent Assembly or Part. | |
"DELETE" | Prevents the drawing from being generated. |
DWSpecificationId | Creates a new drawing with its filename set to be its original file name, suffixed with the specification number - for example, "Block.slddrw" would become "Block 1.slddrw" if it was generated by the first specification. |
"*" & DWSpecificationId | Creates a new drawing with its filename set to be the specification number - for example, "Block.slddrw" would become "1.slddrw" if it was generated by the first specification. |
"*" & DWSpecificationId & "*" | Creates a new subassembly or part with its filename set to be its original file name, prefixed with the specification number - for example, "Block.slddrw" would become "1 Block.slddrw" if it was generated by the first specification. |
The relative path rule controls the folder that the drawing is created in. The folder is specified relative to the "Results" folder which is in the same folder as the project file.
Rule | Meaning |
---|---|
"" | If the project is located at "C:\DriveWorks Pro\My Cupboard\My Cupboard.driveproj" then the driven drawing will be created in "C:\DriveWorks Pro\My Cupboard\Results\". |
DWSpecificationId | If the project is located at "C:\DriveWorks Pro\My Cupboard\My Cupboard.driveproj" and the specification number is 56 then the driven drawing will be created in "C:\DriveWorks Pro\My Cupboard\Results\56\". |
"\\dataserver\models\cupboards" | The driven drawing will be created in \\dataserver\models\cupboards |
Layer state rules are used to control the visibility of a layer.
Rule | Meaning |
---|---|
TRUE | Shows the layer, you could also use "Show" (in quotes). |
FALSE | Hides the layer, you could also use "Hide". |
Sheet state rules are used to delete or rename sheets.
Rule | Meaning |
---|---|
"" | Leaves the sheet as it is. |
TRUE | Leaves the sheet as it is. |
FALSE | Deletes the sheet, you could also use "Delete" (in quotes). |
"PDF" | Renames the sheet to be "PDF". |
Sheet numerator and denominator rules are used to control the scale of the sheet.
Numerator Rule | Denominator Rule | Meaning |
---|---|---|
1 | 2 | Scales the sheet to a ratio of 1:2 |
10 | 1 | Scales the sheet to a ratio of 10:1 |
IF(HeightReturn<1000,2,1) | IF(HeightReturn<1000,1,2) | When Height is 900 (less than 1000) the sheet will be scaled to a ratio of 2:1, When Height is 1500 (greater than 1000) the sheet will be scaled to a ratio of 1:2 |
View state rules are used to delete or change the configuration of a view.
Rule | Meaning |
---|---|
"" | Leaves the view as it is. |
TRUE | Leaves the view as it is. |
FALSE | Deletes the view, you could also use "Delete" (in quotes). |
"Red" | Changes the view to show the "Red" configuration of the referenced model. |
View numerator and denominator rules are used to control the scale of the view.
Numerator Rule | Denominator Rule | Meaning |
---|---|---|
1 | 2 | Scales the view to a ratio of 1:2 |
10 | 1 | Scales the view to a ratio of 10:1 |
IF(HeightReturn<1000,2,1) | IF(HeightReturn<1000,1,2) | When Height is 900 (less than 1000) the view will be scaled to a ratio of 2:1, When Height is 1500 (greater than 1000) the view will be scaled to a ratio of 1:2 |
View left and top rules are used to control the position of the view relative to the bottom, left of the sheet.
View Left Rule | View Top Rule | Meaning |
---|---|---|
20 | 250 | Sets the left position 20 units from the left and 250 units from the bottom |
DWVariableLeft | DWVariableTop | Sets the left position to the value calculated by DWVariableLeft from the left and the value calculated by DWVariableTop units from the bottom |
IF(LengthReturn<2000,20,40) | IF(HeightReturn<1000,250,350) | Sets the left position 20 units from the left, when the Length is less than 2000 and 250 units from the bottom when the Height is less than 1000 |
Breakline rules are used to control the position of the breaklines relative to the left and right of the view.
The Distance 1 reference is to the first breakline from the left of the view edge.
The Distance 2 reference is to the second breakline from the right of the view edge.
If the breakline is not required forcing the rule to result in "Delete" will remove the breakline from the drawing.
Distance 1 Rule | Distance 2 Rule | Meaning |
---|---|---|
15 | 35 | Sets the first breakline 15 document units from the left of the view, and the second breakline 35 document units from the right of the view. |
DWVariableBreakLeft | DWVariableBreakRight | Sets the first breakline to the value calculated by DWVariableBreakLeft from the left of the view, and the second breakline to the value calculated by DWVariableBreakRight from the right of the view. |
IF(LengthReturn<2000,15,45) | IF(LengthReturn<2000,35,65) | Sets the first breakline 15 document units from the left, when the Length is less than 2000 and 45 document units from the left when the Length is greater than 2000. Sets the second breakline 35 document units from the right, when the Length is less than 2000 and 65 document units from the right when the Length is greater than 2000. |
IF(LengthReturn<2000, "Delete",45) | IF(LengthReturn<2000, "Delete",65) | Will delete the first breakline, when the Length is less than 2000 or set it to 45 document units from the left when the Length is greater than 2000. Will delete the second breakline, when the Length is less than 2000 and set it to 65 document units from the right when the Length is greater than 2000. When either of the breakline values result in "Delete" both will be deleted. |
For more accurate control of breakline positions we recommend creating planes in the model from which the breaklines can be dimensioned from. Capture the plane distance and control the breakline position from the plane. Set the distance from the plane to the breakline to a minimum nominal value.
Custom property rules control the text of a custom property. For more information about special custom properties used for driving colors, materials, and textures, see Custom Properties.
Rule | Meaning |
---|---|
CustomerReturn | Results in the custom property being set to the value the user typed into a text box called Customer. |
DriveWorks Quick Tips | |
DriveWorks Quick Tips: Custom Properties Custom properties allow you to control the custom properties within a part, assembly, or drawing. We can control anything from text to be displayed, to the colour of the part. Here, we control the colour of a chair, as well as the description and title on the drawing. | |
DriveWorks Quick Tips are a series of 1 minute videos, available on YouTube, that explain specific functionality. View all Quick Tips |
Various types of annotations can be controlled by DriveWorks. These include:
For more information on these please refer to the See Also links below.