Does a ViewportDraw system exist in Revit?

Does a ViewportDraw system exist in Revit?

mhillis
Advocate Advocate
295 Views
1 Reply
Message 1 of 2

Does a ViewportDraw system exist in Revit?

mhillis
Advocate
Advocate

Quick question,

 

In the AutoCAD API there is a class titled ViewportDraw, along side that there are a number of other API functionalities that allow your software to create temporary graphics/objects within the Viewport that you are viewing.  So for example, you can add graphics that 'appear' like they are on the objects, but in actuality are not.  It is merely the add-on utilizing the ViewportDraw to make these appear.

 

I realize that Revit to AutoCAD comparisons are generally folly, but I wonder is there a similar system in any capacity in Revit?  I would like to, essentially, project graphics and text for objects (e.g. Family Instances) onto the view based on information in the object itself.  


I do understand that there is potential for this to be a flat 'No' or, at best, a "Yes, but, it's gonna work a whole lot differently!".  But looking at the API docs, I was drawing a blank and wanted to exhaust my options before moving on.

 

Thanks!

0 Likes
296 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

You can look at the Analysis Visualisation Framework AVF. It has been around for a while:

 

http://thebuildingcoder.typepad.com/blog/avf

 

A relatively new addition is the DirectContext3D for display of externally managed 3D graphics:

 

http://thebuildingcoder.typepad.com/blog/2017/04/whats-new-in-the-revit-2018-api.html#3.26

 

Cheers,

 

Jeremy

 



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

0 Likes