Revit API - Print Order

Revit API - Print Order

Pei_LiuQ5B9P
Contributor Contributor
361 Views
3 Replies
Message 1 of 4

Revit API - Print Order

Pei_LiuQ5B9P
Contributor
Contributor

Hi, 

 

Does anyone know which API I should use to control print order settings? I manually set the print order by sheet number via the UI. However, when I add a sheet to the print set programmatically using ViewSheetSet.Views, it automatically changes the setting to "Manual." Which property should I change to ensure the print order is always set by Sheet Number?

 

Thank you.

 

Pei_LiuQ5B9P_0-1726662535716.png

 

0 Likes
362 Views
3 Replies
Replies (3)
Message 2 of 4

moturi.magati.george
Autodesk
Autodesk

Hi @Pei_LiuQ5B9P,

There are a few samples done in the Revit SDK on the same. Kindly have a look
https://github.com/jeremytammik/RevitSdkSamples/tree/master/SDK/Samples/ViewPrinter/CS

You can download the full Revit .NET SDK at https://aps.autodesk.com/developer/overview/revit

  Moturi George,     Developer Advocacy and Support,  ADN Open
0 Likes
Message 3 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Pei_LiuQ5B9P ,

 

Please take a look at the IViewSheetSet interface.
This will help you modify the print order by accessing or arranging the list.
Please refer to the links below.

https://thebuildingcoder.typepad.com/blog/2022/04/whats-new-in-the-revit-2023-api.html#4.2.22 

https://www.revitapidocs.com/2020.1/4c3ef0b6-6d63-1e58-cff4-aabd4d8f75a2.htm 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 4 of 4

Pei_LiuQ5B9P
Contributor
Contributor

Thanks all. I had actually used the way you mentioned; however, for some reason, it didnt' work. After I reboot my PC, it worked.....

 

Thanks!

0 Likes