var detail = pageview.AddDetailView("ModelView", top_left, bottom_right, Rhino.Display.DefinedViewportProjection.Top);
if (detail != null)
{
pageview.SetActiveDetail(detail.Id);
detail.DetailGeometry.SetScale(detail_scale, doc.ModelUnitSystem, 1, doc.PageUnitSystem);
detail.DetailGeometry.IsProjectionLocked = true;
detail.Viewport.SetCameraTarget(cpt, true);
detail.CommitViewportChanges();
// detail.CommitChanges();
}
When I use the snippet above, the detail view gets made and repositioned to cpt (which is a Point3d).
However, the scale does not get applied, when I uncomment the last line, the detail view gets set up properly with the correct scale, but is not repositioned.
This behavior is peculiar and does not seem correct. Is it a bug ?
Is there a workaround available ?
thx,
Sander