DXF档案格式_折线 [英] DXF File format _ Polyline

查看:71
本文介绍了DXF档案格式_折线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为DXF创建者程序添加折线的最佳方法是什么.
我在VERTEX上遇到问题.

What is the best way to add polyline fo DXF creator program.
I have problem with VERTEX.

推荐答案

我看到这个问题有些古老-也许现在已经解决了?

我只是看了此处 a> [ ^ ]

我下载了适用于AutoCad 2002的软件,因为我知道有些更改在2000年到2002年之间制作 [
I see this question is somewhat old - perhaps this has been solved by now?

I just had a look at the DXF specification docs, as found here[^]

I downloaded the one for AutoCad 2002, since I understand that there were some changes made between 2000 and 2002[^] (though now that I think of it - there must have been changes between each version. Hmm, never-mind)

Um, there''s a table in the doc that lists the various control codes used.
I just opened up A9CAD and drew a 6 point polyline. Upon searching the saved DXF file, I find that this polyline is represented (at least in part) by the following text:

AcDbPolyline
 90
        6
 70
     0
 43
0.0
 10
-34.68044809800129
 20
-1.29110251450677
 10
-27.93802385557705
 20
10.47227595099936
 10
-16.82019664732431
 20
3.156028368794326
 10
-9.503949065119278
 20
12.55238555770471
 10
-12.8034332688588
 20
-5.164410058027079
 10
-32.88725016118633
 20
-4.518858800773694
  0
ENDSEC




----
90-顶点数标记
70-折线标志(默认为0)
43-等宽旗标
10-顶点的X值
20-顶点的Y值

太好了,我们可以立即看到我们
(a)有6个顶点
(b)有一条折线
(c)它是恒定宽度,最后
(d)连接以下顶点:
{-34.68,-1.29},{-27.94,10.47},{-16.82,3.16},
{-9.50,12.55},{-12.80,-5.16},{-32.89,-4.52}


希望它有用. :)



Key
----
90 - number of vertices marker
70 - Polyline flag (0 is default)
43 - Constant width flag
10 - X value of a vertex
20 - Y value of a vertex

Sooo, we can immediately see that we
(a) have 6 vertices
(b) have a polyline
(c) it is a constant width and finally
(d) It joins the vertices below:
{-34.68,-1.29}, {-27.94, 10.47}, {-16.82,3.16},
{-9.50,12.55}, {-12.80,-5.16}, {-32.89, -4.52}


Hope it''s useful. :)


这篇关于DXF档案格式_折线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆