Draw an Image

Draw an Image

Anonymous
Not applicable
636 Views
5 Replies
Message 1 of 6

Draw an Image

Anonymous
Not applicable

Hello can anyone guide me that how can i draw or put a simple image from C# to a particular element in revit model ?

0 Likes
637 Views
5 Replies
Replies (5)
Message 2 of 6

jeremytammik
Autodesk
Autodesk

If you are serious enough to really want this, you can use the analysis visualisation framework AVF.

 

I did so to display a live webcam image on any selected BIM element:

 

http://thebuildingcoder.typepad.com/blog/2012/02/revit-webcam-2012.html

 

Cheers,

 

Jeremy

 



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

0 Likes
Message 3 of 6

Anonymous
Not applicable

Hello, Actually I am looking for solution in which I can put a image through C# on autodesk model on a particular element and that image should be able to rotate on rotating the model. It should be like augmented reality. 

0 Likes
Message 4 of 6

Revitalizer
Advisor
Advisor

Hi,

 

I don't have a solution at hand, but I can help to specify your question.

 

You want to implement billboarding, that means placing textured rechtangles always orientated to face the camera.

A behaviour similar to TextNotes placed in a View3D.

 

Maybe DirectContext3D may be a starting point, but haven't done it myself so far.

I don't think you can create decals via API, and even if you could, it would result in a performance impact if you create dozens of them.

If you could express your billboard information in 3D content instead of 2D images (arrows, text), then you could use the DirectContext for sure.

https://forums.autodesk.com/t5/revit-api-forum/decal-or-familyinstance-to-handle-the-cylindricalface...

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





Message 5 of 6

Anonymous
Not applicable

 

Hello I tried to use DirectContext3D but could not find the expected result. My aim is to place any random image over the corners of model through some C# code.

0 Likes
Message 6 of 6

Revitalizer
Advisor
Advisor