ELLIPSE
100
AcDbEntity
8
0
100
AcDbEllipse
10
1107.62370824762
20
247.577633230125
30
45.09077735112384
11
-487.5153609892885
21
259.8087316584924
31
94.56264492614634
210
-0.0000000000000001
220
-0.3420201433256687
230
0.9396926207859081
40
0.4621772040673929
41
-0.0182682052204024
42
4.621700810910907
0
我另外一个自己手动编写的DXF中的entitiy段加入上面一段就出错了。
上面这一段是在CAD里面导出的DXF文件中复制的。照说应该没什么问题。但是为什么放到另一个DXF文件就出错了。
导出的DXF中还多出一段
ELLIPSE
5
88
330
1F
这些被我去掉了,因为我查过DXF参考,这个指的是句柄。我自己手编写DXF不需要。
实验圆弧的时候这样做是没问题的,但是实验椭圆就出问题了?请高手指点?
我同时附上DXF-reference中关于椭圆的一段:
Ellipse group codes
Description Group code
Subclass er (AcDbEllipse) 100
Center point (in WCS) 10
DXF: X value; APP: 3D point
DXF: Y and Z values of center point (in WCS) 20, 30
Endpoint of major axis, relative to the center (in WCS) 11
DXF: X value; APP: 3D point
DXF: Y and Z values of endpoint of major axis, relative to the center (in WCS) 21, 31
Extrusion direction (optional; default = 0, 0, 1) 210
DXF: X value; APP: 3D vector
DXF: Y and Z values of extrusion direction (optional) 220, 230
Ratio of minor axis to major axis 40
Start parameter (this value is 0.0 for a full ellipse) 41
End parameter (this value is 2pi for a full ellipse) 42
100
AcDbEntity
8
0
100
AcDbEllipse
10
1107.62370824762
20
247.577633230125
30
45.09077735112384
11
-487.5153609892885
21
259.8087316584924
31
94.56264492614634
210
-0.0000000000000001
220
-0.3420201433256687
230
0.9396926207859081
40
0.4621772040673929
41
-0.0182682052204024
42
4.621700810910907
0
我另外一个自己手动编写的DXF中的entitiy段加入上面一段就出错了。
上面这一段是在CAD里面导出的DXF文件中复制的。照说应该没什么问题。但是为什么放到另一个DXF文件就出错了。
导出的DXF中还多出一段
ELLIPSE
5
88
330
1F
这些被我去掉了,因为我查过DXF参考,这个指的是句柄。我自己手编写DXF不需要。
实验圆弧的时候这样做是没问题的,但是实验椭圆就出问题了?请高手指点?
我同时附上DXF-reference中关于椭圆的一段:
Ellipse group codes
Description Group code
Subclass er (AcDbEllipse) 100
Center point (in WCS) 10
DXF: X value; APP: 3D point
DXF: Y and Z values of center point (in WCS) 20, 30
Endpoint of major axis, relative to the center (in WCS) 11
DXF: X value; APP: 3D point
DXF: Y and Z values of endpoint of major axis, relative to the center (in WCS) 21, 31
Extrusion direction (optional; default = 0, 0, 1) 210
DXF: X value; APP: 3D vector
DXF: Y and Z values of extrusion direction (optional) 220, 230
Ratio of minor axis to major axis 40
Start parameter (this value is 0.0 for a full ellipse) 41
End parameter (this value is 2pi for a full ellipse) 42
解决方案 »
- 文件下载链接URL重定向或解析
- list控件为什么只能在initdialog使用
- 调用SetEvent(m_hShutdownEvent)设置事件对象的状态后,调用WaitForSingleObject.返回结果不确定的问题.
- 请教多线程同步中的互斥对像Mutex的用法??(高手入)
- ReadString读取文件问题
- cmap的问题
- 求助(愿散高分):如何将exe程序转换成dll
- 文件读写的问题
- 大家看看这个http://www.yesky.com/20011223/211189.shtml,我不知道它所说的PictureEx图片显示类哪里可以找到
- 寻寻觅觅.....跪求
- 端口扫描用CONNECT连接和用TCP SYN包在结果上是否等同?
- 聊天程序 任意字符发送接收
有编写过读写DXF文件的达人快出现啊
0
SECTION
2
ENTITIES
0
POLYLINE 5
87
8
0
10
579.68822437851486
20
741.09405826168859
30
0.0
66
1
70
8
ELLIPSE
5
88
330
1F
我用CAD自己画了一个椭圆,跟我编的就差这一段,这一段。
但是这一段已经证明不是问题了。
因为我用CAD画了一个圆弧,去掉这一段,再把数据复制到我自己的DXF文件中,打开是没问题的。
现在实在是不明白,