最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

C#读取DXF文件

IT圈 admin 28浏览 0评论

2024年3月21日发(作者:从凌波)

.

using System;

using c;

using entModel;

using ;

using g;

using ;

using ;

using ;

using tions;

namespace DXF

{

public partial class Form1 : Form

{

private FileStream fs;

private StreamReader sr;

private ArrayList LayerList = new ArrayList();

private ArrayList LineList = new ArrayList();

private ArrayList ArcList=new ArrayList();

private ArrayList EllipseList = new ArrayList();

private ArrayList LwopolylineList = new ArrayList();

private ArrayList SplineList=new ArrayList();

private string[] str = new string[2];

private int count;

private double leftx;

private double lefty;

.

.

private double rightx;

private double righty;

public Form1()

{

InitializeComponent();

}

private string[] ReadPair()

{

string code = ne().Trim();

string codedata = ne().Trim();

count += 2;

string[] result = new string[2] { code, codedata };

return result;

}

private void Read()

{

while (() != -1)

{

str = ReadPair();

if (str[1] == "SECTION")

{

str = ReadPair();

switch (str[1])

.

2024年3月21日发(作者:从凌波)

.

using System;

using c;

using entModel;

using ;

using g;

using ;

using ;

using ;

using tions;

namespace DXF

{

public partial class Form1 : Form

{

private FileStream fs;

private StreamReader sr;

private ArrayList LayerList = new ArrayList();

private ArrayList LineList = new ArrayList();

private ArrayList ArcList=new ArrayList();

private ArrayList EllipseList = new ArrayList();

private ArrayList LwopolylineList = new ArrayList();

private ArrayList SplineList=new ArrayList();

private string[] str = new string[2];

private int count;

private double leftx;

private double lefty;

.

.

private double rightx;

private double righty;

public Form1()

{

InitializeComponent();

}

private string[] ReadPair()

{

string code = ne().Trim();

string codedata = ne().Trim();

count += 2;

string[] result = new string[2] { code, codedata };

return result;

}

private void Read()

{

while (() != -1)

{

str = ReadPair();

if (str[1] == "SECTION")

{

str = ReadPair();

switch (str[1])

.

发布评论

评论列表 (0)

  1. 暂无评论