Because XData attached to an DBObject could belong to many different
applications, some of which may not be written by you. So, in general, you
only want to "remove" XData that belongs to certain application. You surely
know that you can add/remove RegAppTableRecord to/from RegAppTable of
Database to register/unregister an XData application, don't you?
"Niwrex" wrote in message news:5961051@discussion.autodesk.com...
Hi,
So now i do this and it works.
using (tr)
{
DBObject obj = tr.GetObject(res.ObjectId,
OpenMode.ForWrite,false);
ResultBuffer resBuff = new ResultBuffer();
resBuff.Add(new TypedValue(1001,strAppName));
obj.XData = resBuff;
tr.Commit();
tr.Dispose();
}
But why i have to Add the Appname and the Type to the ResultBuffer if i want
to delete it...
normaly i would say i have to create a new Resultbuffer which is empty and
overwrite the XData, but this not work.