There seems to be a bug in RhinoDoc.BeforeTransformObjects event, when raised you receive in args the number of the objects transformed, but the RhinoObject array is always null:
int e.ObjectCount = n -> (1,2,3…)
RhinoObject e.ObjectCount = null
Good afternoon Steve
I’ve got the same issue, is it supposed to be fixed also for Rhino 5?
I tried to update the sdk but all the same…
Here is my code:
’ RhinoDoc.BeforeTransformObjects event handler
Public Shared Sub OnTransformRhinoObjects(sender As Object, e As DocObjects.RhinoTransformObjectsEventArgs)
RhinoApp.WriteLine("** EVENT: Transform Objects **")
RhinoApp.WriteLine(e.ObjectCount & " objects will be transformed")
RhinoApp.WriteLine("Transformation:" & e.Transform.ToString)
For Each tp In e.Objects
RhinoApp.WriteLine(tp.Attributes.Name)
Next
We typically almost never have to use an event watcher for any sort of custom geometry drawing. If you are using a display conduit, you will get called for drawing at the appropriate time.