Click here to Skip to main content
15,891,204 members
Home / Discussions / C#
   

C#

 
AnswerRe: Unhandled exceptions on Model Form remains unhandled in the release build even if the call to the model form is wrapped up in the try….catch{ } block!!!!!! Pin
Moreno Airoldi5-Aug-09 0:48
Moreno Airoldi5-Aug-09 0:48 
GeneralRe: Unhandled exceptions on Model Form remains unhandled in the release build even if the call to the model form is wrapped up in the try….catch{ } block!!!!!! Pin
Cracked-Down5-Aug-09 1:03
Cracked-Down5-Aug-09 1:03 
GeneralRe: Unhandled exceptions on Model Form remains unhandled in the release build even if the call to the model form is wrapped up in the try….catch{ } block!!!!!! Pin
Moreno Airoldi5-Aug-09 2:44
Moreno Airoldi5-Aug-09 2:44 
GeneralRe: Unhandled exceptions on Model Form remains unhandled in the release build even if the call to the model form is wrapped up in the try….catch{ } block!!!!!! Pin
Cracked-Down5-Aug-09 18:45
Cracked-Down5-Aug-09 18:45 
GeneralRe: Unhandled exceptions on Model Form remains unhandled in the release build even if the call to the model form is wrapped up in the try….catch{ } block!!!!!! Pin
Moreno Airoldi5-Aug-09 23:19
Moreno Airoldi5-Aug-09 23:19 
GeneralRe: Unhandled exceptions on Model Form remains unhandled in the release build even if the call to the model form is wrapped up in the try….catch{ } block!!!!!! Pin
Cracked-Down6-Aug-09 0:20
Cracked-Down6-Aug-09 0:20 
GeneralRe: Unhandled exceptions on Model Form remains unhandled in the release build even if the call to the model form is wrapped up in the try….catch{ } block!!!!!! Pin
Moreno Airoldi6-Aug-09 0:26
Moreno Airoldi6-Aug-09 0:26 
Question"NC code" text file parsing with C# Pin
kirazercan4-Aug-09 22:14
kirazercan4-Aug-09 22:14 
Hi falks!
I need to parse a text file including an NC code which is a simple CNC tool motion determinator. In the file, each line shows the instantaneous positon of the tool tip. For example, the first line is X0 Y0 Z0 F200 and second line X10 Y10 Z10 this means that the tool is at (0,0,0) and will go to (10,10,10) with a speed of 200 m/min. This motion will take some time. Depending on the machine tool specificaion (user will enter), according to sampling time entered by user (0.1 second for example) succesive points will be determined between (0,0,0) and (10,10,10) one point in each 0.1 second. I have to parse the text file and give a list as an output showing the position of the tool at eah multiples of the sampling time. A sample NC code is:

G1X0Y0Z0F200
X10.Y10.Z10.
X21.Y16.Z8.
Y10.Z5.

G1 means linear motion. I will use only linear motion. Blanks between the characters are not important. However, to specify X position of tool as 10 it should be written as "X10." or "X10.0". X10 means 10*sampling time (e.g 10*0,1=1). Any caharacter which is not writen in a line means that it is the same as the last written form in earlier lineas. My output will be like

X Y Z
0
0,1 1 1 1
0,2 2 2 2
0,3 . . .
. . . .
.
.

I need help!
AnswerRe: "NC code" text file parsing with C# Pin
Christian Graus4-Aug-09 22:25
protectorChristian Graus4-Aug-09 22:25 
Question[Message Deleted] Pin
engg_sukreet4-Aug-09 22:08
engg_sukreet4-Aug-09 22:08 
AnswerRe: hi Pin
Christian Graus4-Aug-09 22:13
protectorChristian Graus4-Aug-09 22:13 
AnswerRe: hi Pin
OriginalGriff4-Aug-09 22:16
mveOriginalGriff4-Aug-09 22:16 
AnswerRe: hi Pin
stancrm4-Aug-09 22:55
stancrm4-Aug-09 22:55 
GeneralRe: hi Pin
tomseyes4-Aug-09 23:13
tomseyes4-Aug-09 23:13 
Question[Message Deleted] Pin
engg_sukreet4-Aug-09 22:05
engg_sukreet4-Aug-09 22:05 
AnswerRe: Hello Guys Pin
Christian Graus4-Aug-09 22:14
protectorChristian Graus4-Aug-09 22:14 
AnswerRe: Hello Guys Pin
stancrm4-Aug-09 22:54
stancrm4-Aug-09 22:54 
GeneralRe: Hello Guys Pin
OriginalGriff4-Aug-09 22:57
mveOriginalGriff4-Aug-09 22:57 
GeneralRe: Hello Guys Pin
Mycroft Holmes4-Aug-09 23:18
professionalMycroft Holmes4-Aug-09 23:18 
GeneralRe: Hello Guys Pin
Amangang5-Aug-09 2:21
Amangang5-Aug-09 2:21 
AnswerRe: Wat kind of idiot am I? Pin
OriginalGriff5-Aug-09 2:29
mveOriginalGriff5-Aug-09 2:29 
GeneralRe: Wat kind of idiot am I? Pin
Amangang5-Aug-09 3:34
Amangang5-Aug-09 3:34 
GeneralRe: Wat kind of idiot am I? Pin
OriginalGriff5-Aug-09 8:36
mveOriginalGriff5-Aug-09 8:36 
AnswerRe: Hello Guys Pin
CoderForEver8-Aug-09 9:32
CoderForEver8-Aug-09 9:32 
QuestionText Splitting Pin
iNutR4-Aug-09 22:01
iNutR4-Aug-09 22:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.