Question-and-Answer Resource for the Building Energy Modeling Community
Get s tarted with the Help page
Ask Your Question
5

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

asked 2015-10-27 12:42:32 -0600

updated 2015-10-27 15:24:14 -0600

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-10-27 13:09:24 -0600

updated 2015-10-27 13:33:49 -0600

@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.

edit flag offensive delete link more

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 gravatar image Yixing Chen  ( 2015-10-27 13:16:49 -0600 )edit

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

macumber gravatar image macumber  ( 2015-10-27 13:31:51 -0600 )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 gravatar image David Goldwasser  ( 2015-10-27 13:31:51 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2015-10-27 12:42:32 -0600

Seen: 947 times

Last updated: Oct 27 '15