Hi,
I created this method but it seems that it is not working. I want to get all ids of the entities that reside in the DB after a given id (until the last one).
Sorry if any dumb errors, I am still somewhat a beginner in C#. And thanks for all the help on this forum so far.
How could I make it work? Thx for any answers.
using Autodesk.AutoCAD.Internal;
public static ObjectIdCollection getLastIdsAfterId(ObjectId startFetchingAfterId)
{
if (startFetchingAfterId == null)
return null;
ObjectIdCollection objIdColl = new ObjectIdCollection();
ObjectId tempId = Utils.EntNext(startFetchingAfterId, true);
while (tempId != null)
{
objIdColl.Add(tempId);
tempId = Utils.EntNext(tempId, true);
}
return objIdColl;
}
Regards, Stephan