Message 1 of 6
Script Error in Label
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to write a script for a label for threaded holes. I just need small holes to be shown as #12, etc., and anything larger as a 3/4" UNC, ect. My problem comes when I try to use a token in the script that is a fraction. I get this error.
Here is the code
%%script(var = %[20,5,5]Diameter
If var = 0.164 Then
display = "#8 UNC"
ElseIf var = 0.19 Then
display = "#10 UNC"
ElseIf var = 0.216 Then
display = "#12 UNC"
Else
display = "%Diameter UNC"
End If
appendstring(display))
If the unit type for %Diamter is set to decimal then it works. But I don't want decimal, I want fractions with inch symbol.
I think that "Unterminated String Constant" error has to do with the quotation, but I can't get units without the inch symbol even using