How can ObjectTable.Add fail?


#1

I’ve encountered a call to ObjectTable.Add that is failing (returning Guid.Empty), but I don’t know why. The geometry I’m trying to add is simply cloned from another document object. What can cause this?

(It’d be nice to have this information added to the SDK entry for both ObjectTable.Add and all of the individual geometry ObjectTable.Add* methods as well.)


(Menno Deij - van Rijswijk) #2

See if the geometry is valid, use IsValidWithLog.


#3

That did the trick, thanks!