Hello,
The Revit API has an option to export views to PDF:
https://www.revitapidocs.com/2022/93d66d57-c20e-a103-39a1-77bc2ea05183.htm
However, we would like to export entire sheets (consisting of many views) with their sheet layout. Is there a way to do this?
Hello,
The Revit API has an option to export views to PDF:
https://www.revitapidocs.com/2022/93d66d57-c20e-a103-39a1-77bc2ea05183.htm
However, we would like to export entire sheets (consisting of many views) with their sheet layout. Is there a way to do this?
Hi @noamgat8JLC7,
To export multiple views, you can try to loop through them from the current active document and get their Id's like below:
//Declare empty collection to hold all views
ICollection<ElementId> views = new Collection<ElementId>();
//get the open views in the document
IList<UIView> uiviews = uidoc.GetOpenUIViews();
foreach (UIView V in uiviews)
{
views.Add(V.ViewId);
}
//export the views above into the pdf
I am not sure if this is what you are looking for
Hi @noamgat8JLC7,
To export multiple views, you can try to loop through them from the current active document and get their Id's like below:
//Declare empty collection to hold all views
ICollection<ElementId> views = new Collection<ElementId>();
//get the open views in the document
IList<UIView> uiviews = uidoc.GetOpenUIViews();
foreach (UIView V in uiviews)
{
views.Add(V.ViewId);
}
//export the views above into the pdf
I am not sure if this is what you are looking for
Can't find what you're looking for? Ask the community or share your knowledge.