- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Sorry if this topic is solved I've been searching for a while without success.
So here is what I want to do :
- I have a CurveLoop which is valid to crop my active view
- I create a new ViewPlan
- I want to crop it
Everything works fine except the last.
Here is my code :
using (Transaction t = new Transaction(uidoc.Document, "Renomme les vues selectionnees"))
{
t.Start();
ViewPlan maVue = ViewPlan.Create(doc, floorPlanId, doc.ActiveView.GenLevel.Id);
// Appliquer un gabarit sur ma vue (viewTemplate), changer son nom, etc...
// On crope
ViewCropRegionShapeManager vcrShapeMgr = maVue.GetCropRegionShapeManager();
if (vcrShapeMgr.CanHaveShape) vcrShapeMgr.SetCropShape(cl); else TaskDialog.Show("r", "Je ne peux pas croper à la forme demandée");
t.Commit();
}
Another question: I would like to set my view name and apply a view Template to my new view. I can't find out how.
Thanks
Benoit
Solved! Go to Solution.