Integration of Custom Analysis Results on Revit

Integration of Custom Analysis Results on Revit

rnilay81
Enthusiast Enthusiast
1,873 Views
7 Replies
Message 1 of 8

Integration of Custom Analysis Results on Revit

rnilay81
Enthusiast
Enthusiast

Hi 

I am  trying to integrate the Structural Analysis Results on Revit. I have been successful in integrating the results for structures with Faces . I have used AVF with AnalysisDisplayColoredSurfaceSettings . For those structures , we were passing the selected face/faces and Revit perfectly displays the analysis results.  Now we are struggling for the structures where we have only Skeleton structures as per attached screenshot . It doesn't have a Face , so we are not sure how to go about it.   I tried with AnalysisDisplayDiagramSettings and passing the usual FieldDomainPointsByXYZ and FieldValues  and calling the AddSpatialFieldPrimitive   without any parameter and then updating the UpdateSpatialFieldPrimitive afterwards . Though I am not getting any error , there is no analysis results displayed on the View.  Now question is whether for structures like these is this the right way to Integrate AVF ?   The samples also only talks about the Faces selection but I couldn't find any sample for these kind of structures.  Please help. Skeleton_Samplee.PNG

0 Likes
Accepted solutions (2)
1,874 Views
7 Replies
Replies (7)
Message 2 of 8

jeremytammik
Autodesk
Autodesk

Thank you for your query. 

 

Is there any way to drive AVF from the Revit end user interface at all?

 

Or can it only be driven programmatically from an add-in?

 

If the former, then it would help to find out how to address your need manually through UI first. In general, if a feature is not available in the Revit product manually through the user interface, then the Revit API will not provide it either.

 

However, that may not apply to AVF.

 

In any case, I have passed on your question to the development team and will let you know as soon as I hear back from them on this.

 



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

Message 3 of 8

rnilay81
Enthusiast
Enthusiast

Hi Jeremy

Thanks for the reply. I am trying it all through Revit API with AVF for our plugin .  For UI interface , in the current version at least I do have to rely on the Robot - Revit link to export my model from Revit to Robot and then get the Analysis results. But in that case the analysis is done by Robot which we don't want. As in our case we are doing our custom analysis , display of results and post processing of results through Revit Plugin  so the flow is like 

 

     Revit Plugin ------ >  Call to Custom API --- >  Our Custom Analyser ---- -> Results back to Plugin ---- > Plugin transforms the results ------ > Results fed into AVF through API ------ > Results are displayed on the Analytical model on Revit... 

 

And this to and fro journey is working fine for the Face structures .. We are just struggling for skeleton structures may be due to lack of any concrete example as to how to do it...  

 

Thanks anyways and we will wait till we hear from the development team. 

 

 

 

0 Likes
Message 4 of 8

jeremytammik
Autodesk
Autodesk

Thank you for the details.

 

Can you achieve the kind of visualisation that you seek using Robot?

 

Have you ever seen any kind of AVF applied to stick structures in Revit at all?

   



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

0 Likes
Message 5 of 8

rnilay81
Enthusiast
Enthusiast

Thanks for the reply . 

 

1)  Yes, we can achieve the visualization we are seeking using Robot directly. To give you an example , here is the screenshot

of that  in Robot 

 image.png

 

2) Have you ever seen any kind of AVF applied to stick structures in Revit at all

Answer : --  No. I haven't seen AVF applied to stick structures . But in the link it doesn't include or exclude any specific type of structures.  It quotes "The Revit API provides a mechanism for external analysis applications to easily display the results of their computation in the Revit model. https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2014/EN...

 

So we were trying to see if AVF can provide  to stick structures as well.. My gut feeling was that it does provide because Robot does display it nicely.   And for face structure we were getting it in Revit as per below screenshot 

image.png

0 Likes
Message 6 of 8

jeremytammik
Autodesk
Autodesk
Accepted solution

Here is some feedback from the development team:

 

I assume that the Skeleton structures have curves to which analysis data can be attached. If this assumption is correct, then the choice of AnalysisDisplayDiagramSettings may be possible. However, this style of analysis display has its limitations: (1) data must be scalar (not vectors), (2) domain points must be represented by FieldDomainPointsByParameter , attached to curves. This means you should use AddSpatialFieldPrimitive(Curve, 
Transform) .
 
If there are no relevant curves, you perhaps could use style AnalysisDisplayMarkersAndTextSettings with domain defined by FieldDomainPointsByXYZ , then use AddSpatialFieldPrimitive() . Make sure you turn off text in the settings or make a limited use of it only in predefined points.
 
I hope this helps.
 
Please let us know how you end up resolving this. Thank you!
  
 


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

0 Likes
Message 7 of 8

rnilay81
Enthusiast
Enthusiast

Thanks for reply. I will now try with AnalysisDisplayMarkersAndTextSettings  and come back with results shortly. 

0 Likes
Message 8 of 8

rnilay81
Enthusiast
Enthusiast
Accepted solution

Hi Jeremy, Sorry for delay in responding . Was busy in something else..  I have used AnalysisDisplayMarkersAndTextSettings  and it is now successfully displaying the analysis results for me. Thanks for pointing to correct class. I will now accept the solution .  

0 Likes