.NET

Reply
Distinguished Contributor
LochDhu
Posts: 498
Registered: ‎12-12-2003
Message 1 of 1 (151 Views)

DxfCode.ExtendedDataBinaryChunk

151 Views, 0 Replies
03-01-2006 05:24 AM
Anyone have any experience or information in regards to DxfCode.ExtendedDataBinaryChunk? I am trying to create database links to entities and I believe this is giving me my problems. I am using the following code:

Dim aoResBuf As New ResultBuffer
aoResBuf.Add(New TypedValue(DxfCode.ExtendedDataRegAppName, "DCO15"))
aoResBuf.Add(New TypedValue(DxfCode.ExtendedDataInteger32, 1))
aoResBuf.Add(New TypedValue(DxfCode.ExtendedDataAsciiString, "ltCity")) 'Link Template Name

Dim MyStream As New System.IO.MemoryStream(System.Text.Encoding.Default.GetBytes("9")) 'Key Value
Dim Byt As Byte()
Dim objBr As New System.IO.BinaryReader(MyStream)
Byt = objBr.ReadBytes(objBr.BaseStream.Length)
objBr.Close()
aoResBuf.Add(New TypedValue(DxfCode.ExtendedDataBinaryChunk, Byt))

mp.XData = aoResBuf

mp is an Mpolygon Object - the code runs fine and the xData is attached, however, the link is ignored....being the first to admit that I don;t fully grasp binary in .NET I'm not sure if the above code is correct or not.

Any info is appreciated...

Scott
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.