Hi Wolfgang;
If you are in a detail, you can obtain the correct transform as follows:
CRhinoPageView* page_view = 0;
CRhinoView* view = RhinoApp().ActiveView();
if (view && view->IsKindOf(RUNTIME_CLASS(CRhinoPageView)))
page_view = static_cast<CRhinoPageView*>(view);
if (0 != page_view)
{
const CRhinoDetailViewObject* detail = page_view->FindActiveDetailObject();
if (0 != detail)
{
ON_Xform world_to_page(1);
detail->GetPageXforms(&world_to_page, 0);
// TODO: transform stuff here...
}
}
Does this help?
– Dale