Thursday, December 03, 2009

Add Data to Existing XRecord

I had a hard time finding how to add existing information to an existing XRecord. I found a way utilizing code from Kean’s blog:

Here’s a snippet of code I used to add a value to an existing XRecord.

                    Dim rb As New ResultBuffer
For Each resBuf In resBufArray
rb.Add(New TypedValue(DxfCode.Handle, resBuf.Value))
' Add the new pipe handle.
rb.Add(New TypedValue(DxfCode.Handle, objHandle))
sewerLatXRec.XlateReferences = True
sewerLatXRec.Data = DirectCast(rb, ResultBuffer)
End If

The best location to get information on how to create XRecord’s is the AutoCAD .NET Labs training materials.

I think I spent way too much time finding how to add information to the XRecord.

No comments:


Blog Widget by LinkWithin