How to render view by RevitAPI

How to render view by RevitAPI

Anonymous
Not applicable
1,564 Views
5 Replies
Message 1 of 6

How to render view by RevitAPI

Anonymous
Not applicable

I want to render view by API, but Postcommand(RevitCommandId.LookupPostableCommandId(PostableCommand.Render)) is not effective, it can only open the dialog of render.

0 Likes
Accepted solutions (1)
1,565 Views
5 Replies
Replies (5)
Message 2 of 6

jeremytammik
Autodesk
Autodesk

I am asking the development team for advice for you on this.

 

There may already be some useful information on the topic in the articles on setting up a 3D view:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.37

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 6

Anonymous
Not applicable

Thank you, I am looking forward to your early reply

0 Likes
Message 4 of 6

RPTHOMAS108
Mentor
Mentor

I was looking yesterday for this and I don't believe it is possible.

 

You can post the Render command but that brings up the modeless Render window, there is the ability to change Render options but not then activate the Render.

 

Was also interested to see if objects created via DirectContext3D were visible in the render, I suspected the asnwer was no and the observed answer was no (by trying duplicate geomery sample). I did kind of think this would have been good since we as an industry often create a lot of temporary objects for rendering (people), things that could be generated at render time within a certain view scope not model wide.

 

i.e. the workflow could have been Render activating, consider view scope, place RPCs within range, render, remove RPCs.

Message 5 of 6

jeremytammik
Autodesk
Autodesk
Accepted solution

The development team confirmed and say:

 

This seems to be available only through the UI. Sorry.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 6 of 6

r10521606
Explorer
Explorer

Wondering is it feasible in 2023 RevitAPI now? I have same experience of above comment that the rendering options windows will pop up when the program run to something related to GetRenderingSettings(), the GUI panel have export option but it seems not in API. Plus, using GUI is acceptable if it can do bunch rendering but it seems that feature only exist in Rendering in Cloud. Is there any alternatives?

0 Likes