AutoCAD 2006 XRecord problem

AutoCAD 2006 XRecord problem

Torokze
Enthusiast Enthusiast
652 Views
0 Replies
Message 1 of 1

AutoCAD 2006 XRecord problem

Torokze
Enthusiast
Enthusiast
SORRY! I WAS WRONG USING .XDATA INSTEAD OF .DATA !!
PLEASE DELETE MY POST !!


Unfortunately my customer still uses AutoCAD 2006 so I have to use that.
This code works well on 2009 but I have to downgrade it to 2006.

I want to add a DBDictionary into the NOD. Into this custom dict I want to store a few XRecord.

{code}
ResultBuffer _rb = new ResultBuffer( );
_rb.Add( new TypedValue( (int)DxfCode.Real, _Element.Amount ) );

Xrecord _NewXRec = new Xrecord( );
_NewXRec.XData = _rb;

_ExtraRecords.SetAt( _Element.EAN, _NewXRec );
_tr.AddNewlyCreatedDBObject( _NewXRec, true );
{code}

The _NewXRec.XData = _rb; throws an eBadDxfSequence.

Am I missed something ?
0 Likes
653 Views
0 Replies
Replies (0)