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: http://through-the-interface.typepad.com/through_the_interface/2006/11/linking_circles_1.html
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))
Next
' 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:
Post a Comment