I'm writing a C# code to extract data from a AutoCad drawing. I managed to display all the data from the drawing in the RichtextBox but I only wanted the X, Y coordinations (start and end points) of the wires, how should I write the code?
// DWGFilePath is the file selected from OpenFileDialog 
var FileStream = new FileStream(
  DWGFilePath, 
  FileMode.Open, 
  FileAccess.Read, 
  FileShare.ReadWrite); 
var file = new StreamReader(FileStream, System.Text.Encoding.UTF8, true, 512);
FinalContent = file.ReadToEnd();
richTextBox1.Text = FinalContent;