algorithmic modeling for Rhino
I have a complex definition that consistently throws a component exception in the Sort List Component ("Object reference not set to an instance of an object") and I would like to find the sort list that is causing the trouble. The error gives me the C_uuid and the c_pos of the object in question, but nothing appears at the canvas location indicated. The document in question has many clusters, so my assumption was that it was in a subsidiary document, but if I run GH_Document.FindObject(ID,false) with ID set to the the C_UUID from the error, it returns null.
Thoughts? Is there another GH_Document method that might help me locate the trouble object?
Hmm, it'll be the ID of the actual component. If that component is in a subsiduary document then you won't find it if you call FindObject on the top-level document.
However those error messages are crashes which have been caught too late, so in fact I'd like to see the file since that error should not have happened in the first place.
I was able to find the problem cluster through trial and error, and have attached just the segment that's giving me trouble. I've since fixed the issue, but for some reason this snippet incorrectly identifies itself as a cyclical data stream when it receives null input data. I think the heart of the problem actually has to do with converting invalid boxes to surfaces... as long as I clean out the invalid boxes before the srf parameter everything downstream behaves as it ought to.