A macro that simply prints pdf

A macro that simply prints pdf

osayed643PD
Contributor Contributor
477 Views
4 Replies
Message 1 of 5

A macro that simply prints pdf

osayed643PD
Contributor
Contributor

Hi all, I haven't found anything too similar, the things I found were way too much.

I would just like a few lines of c# code that print a selected view set based on set print settings.

I have already written it in python but with some errors.

but please keep it as simple as possible.

 

0 Likes
Accepted solutions (1)
478 Views
4 Replies
Replies (4)
Message 2 of 5

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @osayed643PD ,

 

Please take a look at this below link

https://www.revitapidocs.com/2023/29599e18-cad8-813e-dc6e-04350fe37944.htm 

I hope this helps.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 5

naveen.kumar.t
Autodesk Support
Autodesk Support

If you want to export views to PDF, you can use Export Method (String, IList(ElementId), PDFExportOptions).

Also please take a look at this link PDFExportOptions Class

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 4 of 5

osayed643PD
Contributor
Contributor

thanks, but how do I specify the viewset I want to use?? sorry ive been using only python

0 Likes
Message 5 of 5

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @osayed643PD ,

 

Please take a look at these below links

Link 1 

Link 2 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes