Iterate over Analysis Result Measurements

Iterate over Analysis Result Measurements

Anonymous
Not applicable
623 Views
6 Replies
Message 1 of 7

Iterate over Analysis Result Measurements

Anonymous
Not applicable

I would like to perform an Energy analysis on Revit model and retrieve the generated measurements for further statistical calculations. Is this possible through Revit API ?

 

I was only able to get the minimum and maximum measurements through this code:

SpatialFieldManager sfm = SpatialFieldManager.GetSpatialFieldManager(doc.ActiveView);

int num = sfm.NumberOfMeasurements;
double min = sfm.GetMinimum(2, true);
double max = sfm.GetMaximum(2, true);

Thanks

0 Likes
Accepted solutions (1)
624 Views
6 Replies
Replies (6)
Message 2 of 7

jeremytammik
Autodesk
Autodesk

I don't know off-hand, but I passed on your query to the development team.



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

Message 3 of 7

jeremytammik
Autodesk
Autodesk
Accepted solution

Here is the reply from the development team:

 

I don’t think that we intend the Analysis Visualization results to be read and interpreted in this manner.  If GBS is being used for the energy analysis, it may be possible to get the results from GBS (the GBS API). 

 

I hope this helps.

 

Best regards,

 

Jeremy



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

Message 4 of 7

Anonymous
Not applicable
Thanks a lot for your concern.

Yes GBS will definitely help. Could you please point me to any sample for GBS API ? I am mainly interested in energy and lighting analysis. I searched on web and in SDK folder but didn't succeed finding them.

Thanks
0 Likes
Message 5 of 7

jeremytammik
Autodesk
Autodesk

Have you checked the building performance analysis blog?

 

http://autodesk.typepad.com/bpa

 

For instance, searching the Internet for "gbs api" immediately brought up this page for me:

 

http://autodesk.typepad.com/bpa/2013/07/integrating-revit-api-and-gbs-api-to-optimize-building-energ...

 

I do not understand how you could search for this and not find it.

 

Good luck with your further research.

 

Cheers,

 

Jeremy



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

Message 6 of 7

Anonymous
Not applicable
Thanks Jeremy ..

I just expected some code samples for simple usage .. which I didn't find in the bpa web page nor in Revit SDK folder.

I will have to learn more about this topic.

Thank you
0 Likes
Message 7 of 7

jeremytammik
Autodesk
Autodesk

Thank you for your appreciation!

 

My pleasure entirely.

 

I believe that many developers and their applications read the gbXML file, but I am not sure about the exact workflow.

 

Please let us know how you end up addressing this.

 

Thank you!

 

Cheers,

 

Jeremy



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

0 Likes