NREL / floorspace.js

Other
66 stars 35 forks source link

[help wanted] open floorspace.js file with cli #410

Open wta12 opened 2 years ago

wta12 commented 2 years ago

Is there any way to open existing floorspace.js file using CLI/script instead of manually open from web wizard then open particular view (component instead of space) ?

macumber commented 2 years ago

What do you mean by open using a CLI or script? What are you trying to do?

wta12 commented 2 years ago

when you have multiple floorspaceJS files , opening a few of them through import wizard of web interface is inconvenient since we need to open each file manually. It's much easier if there is a way to open a specific file or list of files programmatically.

macumber commented 2 years ago

Would this be for a custom app using FloorspaceJS or would you just want to open each model in a new browser tab?

wta12 commented 2 years ago

open each model in new browser tab is my preferred one. The custom app would be overkill for normal user (installation/maintenance).

macumber commented 2 years ago

How would you initiate opening a new browser tab? Double-clicking on a FloorspaceJS JSON file?

wta12 commented 2 years ago

Initially, I would put all of input files in a list. Open new browser tab could be done with JS script or automation API. One of issues would be displaying the full name of files.

DavidGoldwasser commented 1 year ago

@wta12 not sure if this would work for your use. If you don't want to edit the FloorSpaceJS but just convert it to an OSM, you can run the merge_floorspace_js_with_model measure as part of a workflow with the OpenStudio CLI.