Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66735

Re: Macro for Duplicating an Existing Sheet and Views RVT2014

$
0
0
Hi Giovanni,

please try this:
// gets all view ids from viewports in viewsheet
var vpIds = vs.GetAllViewports();
List<ElementId> viewIds = new List<ElementId>();
foreach (var vpId in vpIds)
{
Viewport vp = revitDoc.GetElement(vpId) as Viewport;
viewIds.Add(vp.ViewId);
}
//
// all views but schedules
foreach(ElementId eid in viewIds)
{
//...
}

Viewing all articles
Browse latest Browse all 66735

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>