- 积分
- 2248
- 明经币
- 个
- 注册时间
- 2011-12-29
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2016-7-28 23:12:36
|
显示全部楼层
找到个替代的办法!用netdxf库 写!很简单
Imports netDxf.Entities
Imports netDxf.DxfDocument
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim doc As New netDxf.DxfDocument
Dim l1 As Line = New Line()
l1.StartPoint = New netDxf.Vector3(0, 0, 0)
l1.EndPoint = New netDxf.Vector3(100, 100, 0)
doc.AddEntity(l1)
Dim pl As LwPolyline = New LwPolyline
Dim pt(5) As LwPolylineVertex
pt(0) = New LwPolylineVertex(0, 0)
pt(1) = New LwPolylineVertex(10, 20)
pt(2) = New LwPolylineVertex(20, 40)
pt(3) = New LwPolylineVertex(30, 60)
pt(4) = New LwPolylineVertex(50, 40)
pt(5) = New LwPolylineVertex(20, 10)
For i As Integer = 0 To 5
pl.Vertexes.Add(pt(i))
Next
doc.AddEntity(pl)
doc.Save("C:\Users\Administrator\Desktop\test2.dxf")
End Sub
End Class
上面是我测试代码,写起来很简单!你去网上下个netdxf库,引用下! 没例子!我随便试了下!只要定义好实体然后AddEntity,save就搞定了 |
|