I am working on a script that writes the contents of a field in Access to a text file and then parses the text and translates it from the drawing command line instructions it was in into AutoCAD command line. However, I have run into a problem. In the command line it is in, the directions are in the following format:
r30 d16 l30 u16
This would mean go right 30, down 16, left 30, and up 16. Translating this isn't a problem, but when the command line has a diagonal line it would say:
rd3,3
This would mean draw a line from your starting point to a coordinate which is three right and three down from where you were. Translating this also would not be a problem except for some reason the comma disappears.
The script I have converts the input command line to all lowercase letters using the LCase() function and then when I go to get the string of interest instead of it reading
u19 ul3,3 l3 dl3,3 d19 r9
it reads
u19 ul33 l3 dl33 d19 r9
This disappearance of commas makes it impossible to translate the command. Does anyone know why the commas would disappear?
-Andi
r30 d16 l30 u16
This would mean go right 30, down 16, left 30, and up 16. Translating this isn't a problem, but when the command line has a diagonal line it would say:
rd3,3
This would mean draw a line from your starting point to a coordinate which is three right and three down from where you were. Translating this also would not be a problem except for some reason the comma disappears.
The script I have converts the input command line to all lowercase letters using the LCase() function and then when I go to get the string of interest instead of it reading
u19 ul3,3 l3 dl3,3 d19 r9
it reads
u19 ul33 l3 dl33 d19 r9
This disappearance of commas makes it impossible to translate the command. Does anyone know why the commas would disappear?
-Andi