Revit geometry preview using c#

Hello all,

Checking if anyone knows which API does dynamo use to create geometry previews in Revit (See image) .

Hope to create the same effect while coding in C#.

Thanks!

Look at GeometryElement.SetForTransientDisplay()

1 Like

Hey Thomas,

Thanks for replying! However, its odd that I cant seem to find it in the docs.

This was the most similar subject i found, is this what you were referring to?
http://www.revitapidocs.com/2018.2/0decdddc-ae4a-d46d-d141-9d37e7973e05.htm

thanks :slight_smile:

1 Like

Yep thats the one.

Hey Thomas,

Tried messing around with it but to no avail, have you tried it before?
I did some digging and found this.
https://forums.autodesk.com/t5/revit-api-forum/document-maketransientelements/td-p/7774471

Han