Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
0

convert json from floorspace js to epjson [closed]

asked 2022-05-19 22:01:48 -0600

Piyush's avatar

Hi! I am using FloorspaceJS platform to create building geometry online. I wish to translate the resulting json (also exported from the FloorspaceJS platform) to epjson (or IDF). I need this epjson (or idf) to to include HVAC programmatically (say using eppy).
From what I understand, there is an OpenStudio method built into the OpenStudio SDK that translates the geometry into an OSM file. Unfortunately the OpenStudio workflow does not work for me. I would appreciate if anyone can point me to a json converter from Floorspace to epjson. Thanks! Piyush

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Piyush
close date 2022-05-26 12:31:22.632517

1 Answer

Sort by » oldest newest most voted
1

answered 2022-05-20 01:01:06 -0600

I know you mention the OpenStudio workflow doesn’t work for you, but I wanted to point out their is an OpenStudio Measure to convert FloorSpaceJS to an OpenStudio OSM. If you don’t want to work with OpenStudio beyond this, you can run this measure in using the OpenStudio CLI and pass in an argument —measures_only. You can run this through Python or whatever your preferred way to make system calls is, and it will run the measures but stop before attempting to run a simulation providing you with an EnergyPlus IDF file. You never have to use or open the OSM if you don’t need it, and you don’t need to use Ruby.

edit flag offensive delete link more

Comments

Dear David, Thanks for your response. We will try this and hopefully we should be able to get around it. Will share the outcomes as well.

Piyush's avatar Piyush  ( 2022-05-20 07:53:11 -0600 )edit

I'm interested to hear. Also, just for some additional background, currently under the hood FloorSpaceJS to OpenStudio goes FloorSpaceJS to Three.js and then Three.js to OSM. We are currently getting ready to start work to go direct from FloorSpaceJS to OSM without Three.js. I only mention it here so if you see any translation issues and can provide example files and file an issue we can try to address them in this update and possibly include input file in test suite.

David Goldwasser's avatar David Goldwasser  ( 2022-05-20 09:17:13 -0600 )edit

Dear David, Thanks for sharing additional insights. I have tried the solution you suggested, but am hitting a wall. When I try to execute the OSW file I created, I receive the following error (truncated): [15:05:46.039508 ERROR] Found error in state 'initialization' with message ["Cannot find measure MergeFloorspaceJsWithModel::/ruby/2.7.0/gems/openstudio- I have looked at similar errors posted on Unmet-hours and tried suggested solutions (restart, short paths, etc). Any help would be appreciated.Thanks!

Piyush's avatar Piyush  ( 2022-05-25 06:03:10 -0600 )edit

to surmise what i did: 1. Downloaded measure MergeFloorspaceJsWithModel from OS. Saved automatically to C:\Users\PIYUSH\BCL\16ef6369-6420-4f17-894c-a767895bcaa4\e9c8d42e-69b7-4d09-9cf8-9090ce62e4e2 2. Created path to hold all files [F:\OSMWorkflow] 3. Created blank OSM as seed file. 4. Saved FS Json created online, weather file, seed file & OSW to F:\OSMWorkflow 5. Executed run command from cli

Piyush's avatar Piyush  ( 2022-05-25 06:10:47 -0600 )edit

@Piyush make sure you set measure paths and file paths in the top of the OSW file as shown here. They can be absolute or relative paths https://github.com/NREL/osw2osa/blob/...

While I have a relative path for the name of FLoorSpaceJS file here, Assuming I setup file paths correctly I can just use the file name here without any path. https://github.com/NREL/osw2osa/blob/...

David Goldwasser's avatar David Goldwasser  ( 2022-05-25 17:12:12 -0600 )edit

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2022-05-19 22:01:48 -0600

Seen: 281 times

Last updated: May 20 '22