First time here? Check our help page!
5

Web-based APIs for 3D geometry view of IDF file

Are there any web-based APIs that can accept IDF file as input and return the 3D geometry view of IDF files? So I can put the results into my website.
It will be great if the view can have the similar behavior as SketchUp, such as Zoom in/out, rotate, move.
I mean web-based APIs, so the return should be in HTML format.

Yixing Chen's avatar
921
Yixing Chen
asked 2015-10-27 12:42:32 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2015-10-27 15:24:14 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

@macumber made a new view data measure that works in the OpenStudio workflow, but in the end shows SQL results from EnergyPlus. It uses input render modes unique to OpenStudio models like space type and story, however It could be adapted to work on an IDF file, or you could use the OpenStudio API to translate the IDF to an OSM. The measure above is meant for looking at results. There is also a view model measure that doesn't have access to the SQL file. Here is a video of it being demonstrated

If you just want to view geometry without results, EnergyPlus can export a DXF file. There should be a number of web based DXF viewers. AutoDesk used to have a free one, but may be subscription now.

David Goldwasser's avatar
20.4k
David Goldwasser
answered 2015-10-27 13:09:24 -0500, updated 2015-10-27 13:33:49 -0500
edit flag offensive 0 remove flag delete link

Comments

You may misunderstand. I mean the web-based APIs which return results in HTML format, so I can add them into my website.

Yixing Chen's avatar Yixing Chen (2015-10-27 13:16:49 -0500) edit

These measures output self contained html files as well as JSON files that could be served from a more dynamic web application.

macumber's avatar macumber (2015-10-27 13:31:51 -0500) edit

The reports produced by OpenStudio are html files. This one uses is rendered using Three.js. You can get more background on the technologies used in the git repository for the measure.

If you wanted to build a website that let users upload or choose an IDF or OSM file, you could return a page like the "view model" measure.

David Goldwasser's avatar David Goldwasser (2015-10-27 13:31:51 -0500) edit
add a comment see more comments