I am using AlignedDimension
object of Autodesk.AutoCAD.DatabaseServices
to create objects in autocad.
I want to store some data in XData
of Dimension object using TypedValue
object.
But when we assign the resultBuffer
to XData
it does not assign the value to XData
.
This works fine if the object is Entity But xData
is not getting assigned for AlignedDimension
object.
Can you please help me assign typedValue
to Xdata
of AlignedDimension
?
Below is the code snippet:
List<TypedValue> xdata = new List<TypedValue>();
xdata.Add(new TypedValue(872, "ACF"));
DBObject object1= acTrans.GetObject(newDimension.ObjectId, OpenMode.ForWrite) as Dimension;
ResultBuffer resBuffer = new ResultBuffer(xdata.ToArray());
object1.XData = resBuffer;