DxfDocumentLoad Method (Stream) |
Namespace: DXFReaderNET
[C#] string dxfString = File.ReadAllText("myFile.dxf"); byte[] byteArray = System.Text.Encoding.ASCII.GetBytes(dxfString); MemoryStream stream = new MemoryStream(byteArray); dxfReaderNETControl1.DXF = dxfReaderNETControl1.DXF.Load(stream); dxfReaderNETControl1.Refresh();
[Visual Basic]
Dim dxfString As String = File.ReadAllText("myFile.dxf")
Dim byteArray As Byte() = System.Text.Encoding.ASCII.GetBytes(dxfString)
Dim myStream As MemoryStream = New MemoryStream(byteArray)
dxfReaderNETControl1.DXF = dxfReaderNETControl1.DXF.Load(myStream)