Sensor detection area 3D

Sensor detection area 3D

MatthiasWyss
Participant Participant
1,519 Views
4 Replies
Message 1 of 5

Sensor detection area 3D

MatthiasWyss
Participant
Participant

Hi all

I'm trying to display the detection area of motion and presence sensors in a 3D view.

So far the only possibility I found was to use DirectShapes to do so but then I end up with a "physical" geometry.

Is there another way to do this with some kind of "virtual" geometry?

The attached image shows one example of such a sensor. Even though this one is rotationally symmetric not all of them are. They can have very complex forms.

 

Best

Matthias

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

jeremytammik
Autodesk
Autodesk

Dear Matthias,

 

You can display analysis results such as those you describe using the AVF, the analysis visualisation framework:

 

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

 

For instance, I used it in my RvtFader add-in to display signal attenuation in a building as a heatmap on the floor:

 

https://github.com/jeremytammik/RvtFader

 

https://thebuildingcoder.typepad.com/blog/2017/03/rvtfader-avf-ray-tracing-and-signal-attenuation.ht...

 

Cheers,

 

Jeremy

 



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

Message 3 of 5

MatthiasWyss
Participant
Participant

Dear Jeremy,

thanks a lot for your reply and the hint with the analysis framework.

I tried the AVF to display the detection are but I could manage to make it look as expected.

So I tried to create a transient DirectShape but this didn't show up in the view.

 

Finally I found your post in this forum that this function shouldn't be used.

https://forums.autodesk.com/t5/revit-api-forum/document-maketransientelements/td-p/7774471

 

Is there another possibility to create transient DirectShapes? Basically I just don't want the DirectShape to be stored in the project.

 

Best

Matthias

0 Likes
Message 4 of 5

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Matthias,

 

Thank you for your appreciation.

 

Nope, sorry, the direct shape is a database element and needs to be stored in the database.

 

The simplest approach to achieve what you are asking for that I can think of is to create direct shapes, tag them, and subscribe to the DocumentSaving event to remove them again before the document is saved.

 

I hope this helps.

 

Cheers,

 

Jeremy

 



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

Message 5 of 5

MatthiasWyss
Participant
Participant

Ah, great idea, thanks Jeremy!

I didn't think of that!

 

Best

Matthias

0 Likes