A surface finish symbol rule consists of separate functions to control individual elements of the surface finish symbol.
The functions can be used individually, to control just that element of the SF Symbol, or together to control the whole of the SF Symbol.
When used together the functions are separated using the pipe bar |.
The syntax used to drive the various Drawing Annotations (SETTEXT, SETSYMBOL, SETFRAMEVALUES, SETLABEL, etc.) are not typical DriveWorks functions.
They will not display the same characteristics as a function (Auto-complete, Bracket Matching or Rules Insight) when entered in the Rule Editor.
These are strings, and are required to be enclosed within quotes ("").
During the processing of these rules, DriveWorks will parse the string and apply the result to the captured annotation.
"SETSYMBOL( [SymbolIndexNumber] , [SurfaceTextureIndexNumber] , [AllAround] )"
Where
SymbolIndexNumber is the index number of the required symbol (see chart below)
SurfaceTextureIndexNumber is the index number of the required texture symbol (see chart below)
AllAround is either True or False (see chart below)
Surface Finish Symbol | Symbol Index Number | Surface Texture Symbol | Surface Texture Index Number | All Around | All Around Value |
---|---|---|---|---|---|
0 | n/a | 0 | False | ||
0 | n/a | 0 | True | ||
1 | n/a | 0 | False | ||
1 | n/a | 0 | True | ||
2 | n/a | 0 | False | ||
2 | n/a | 0 | True | ||
3 | n/a | 0 | n/a | False | |
4 | n/a | 0 | n/a | False | |
5 | n/a | 0 | n/a | False | |
6 | n/a | 0 | n/a | False | |
7 | n/a | 0 | n/a | False | |
8 | n/a | 3 | n/a | False | |
9 | 3 | n/a | False | ||
9 | 4 | n/a | False | ||
9 | 5 | n/a | False | ||
9 | 6 | n/a | False |
Rule | Meaning |
---|---|
"SetSymbol (2,0,True)" | Results in the Machining Prohibited, All Around symbol being used |
"SetSymbol(" & DWVariableSymbolIndexNumber & "," & DWVariableTextureIndexNumber & "," & "False)" | Results in Machining Prohibited, Local symbol being used, when the results of the variables used are 2 and 0 respectively |
"SetSymbol(" & DWVariableSFString & ")" | Results in Machining Prohibited, Local symbol being used, when the result of the variable, DWVariableSFString, is the string ,2,0,False |
"SETTEXT( [PositionIndexNumber] , [Text] )"
Where
PositionIndexNumber is the index number for the required position of the value to display (see chart below).
Text is the value to display.
Standard | JIS | JIS Basic/
| Description | Position Index Number |
---|---|---|---|---|
Material Removal Allowance | 1 | |||
Production Method | 2 | |||
Sampling Length | 3 | |||
Other Roughness Value | 4 | |||
Maximum Roughness Roughness Rz/Rmax | 5 | |||
Minimum Roughness Roughness Ra | 6 | |||
Roughness Spacing | 7 |
Rule | Meaning |
---|---|
SetText(5,6.3)|SetText(6,1.6)" | Sets the Rmax value to be 6.3 and the Ra value to be 1.6 |
"SetText(5," & DWVariableRmax& ")|SetText (6," & DWVariableRa & ")" | Sets the Rmax value to be the result of the variable DWVariableRmax, and the Ra value to be the result of the variable DWVariableRa |
"SETSYMBOL( [SymbolIndexNumber] , [SurfaceTextureIndexNumber] , [AllAround] ) | SETTEXT( [PositionIndexNumber] , [Text] , )"
Rule | Meaning |
---|---|
"SetSymbol(" & DWVariableSFString & ")|SetText(5," & DWVariableRmax &")|SetText(6," & DWVariableRa & ")" | Results in Machining Required, Local symbol being used, when the result of the variable, DWVariableSFString, is the string ,1,0,False. Also sets the Rmax value to be the result of the variable DWVariableRmax, and the Ra value to be the result of the variable DWVariableRa |