Read DXF file in vb.net

Dec 26, 2016 at 6:57 AM
Hello everyone,

is there any documentation on how can i handle a file with vb.net ?

i can not find any.

i need to open a dxf file and have access to every lines / arcs / circles in it.

thank you
Coordinator
Dec 29, 2016 at 2:40 PM
All code and examples in the project are written in c#, but the conversion between c# and vb.net, and vice versa, is, generally, very straight forward; they share the same basis after all. The piece of code in the homepage of this project will be in vb:
Public Shared Sub Main()
    ' by default it will create an AutoCad2000 dxf version
    Dim dxf As New DxfDocument()
    ' add your entities here
    dxf.AddEntity(entity)
    ' save to file
    dxf.Save(filename)

    ' load file
    Dim dxfLoad As DxfDocument = DxfDocument.Load(filename)
End Sub
If you search the web for "convert c# to vb" you will find several free webs that will make you the conversion.

Daniel