Message 1 of 1
AutoCAD 2006 XRecord problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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 ?
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 ?