我正在编写 C#代码以从 AutoCad图形中提取数据。我设法在RichtextBox
中显示了来自工程图的所有数据,但我只想要X, Y
坐标(开始和终点),该如何编写代码?
// 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;