we are used to the Rhino Plug-in Development where we get the RhinoDoc passed to us in the RunCommand function. But what is the best way to use the document (and access Units, Tolerances, etc…) in a GH Component development?
My first guess would have been
RhinoDoc doc = RhinoDoc.ActiveDoc;
But that comes with a very nice “WARNING! Do not use ActiveDoc if you don`t have to…”
So…do I have to?