NEW: Welcome to the Rhino 6 version of this page! Looking for the older Rhino 5 version?

Basepoint of Block Instance

Demonstrates how to find the basepoint coordinates of a block instance.

C/C++

ON_3dPoint BlockInstanceInsertionPoint(const CRhinoInstanceObject* instance_obj)
{
  ON_3dPoint pt = ON_UNSET_POINT;
  if (instance_obj != 0)
  {
    pt = ON_origin;
    pt.Transform(instance_obj->InstanceXform());
  }
  return pt;
}