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

Cannot seem to be able to export an SDD xml file from my OpenStudio SketchUp model.

asked 2024-10-01 16:26:57 -0600

emroberson's avatar

updated 2024-10-02 09:42:38 -0600

I cannot seem to be able to export an SDD xml file from my OpenStudio SketchUp model. When I click on the option in the Export menu nothing seems to happen. I am not asked where I would like to save the file, unlike trying the other export options.

I would like to use the SDD to bring in the detailed geometry into CBECC-22. I have done it before, albeit months ago, so I might have done it a different way at the time but forgot how.

I am currently on SketchUp Pro 2021 and I just upgraded the OpenStudio Application to v1.7.0 and the SketchUp Plug-in to v1.8.0. This didn’t seem to help.

Could you offer any suggestions?

Thanks

edit retag flag offensive close merge delete

Comments

@emroberson can you upload your model to Google Drive, Dropbox, etc. and then share a URL for others to download? That would help others provide better solutions.

Aaron Boranian's avatar Aaron Boranian  ( 2024-10-02 09:42:18 -0600 )edit

I ended up looking at the ruby script differences between the export_gbxml and the export_sdd. Exporting to gbxml worked for me. The following ruby script showed a difference between def export_gbxml and def export_sdd: C:\Users\Eric\AppData\Roaming\SketchUp\SketchUp 2021\SketchUp\Plugins\openstudio\lib\CommandManager.rb

I changed the def export_sdd at the second if-statement to match the def export_gbxml: [if (path = UI.save_panel("Export SDD Input XML Model", ....] changed to [if (path = OpenStudio.save_panel("Export SDD Input XML Model", ....]

I was then able to save an .xml.

emroberson's avatar emroberson  ( 2024-10-02 12:09:07 -0600 )edit

@emroberson great! If you feel that your solution works, feel free to post that as an "answer" and reap the karma points from upvotes.

Aaron Boranian's avatar Aaron Boranian  ( 2024-10-02 12:12:10 -0600 )edit

Thanks @Aaron Boranian. I really know very little about coding or using Q+A forums like this. Sorry for any mistakes in protocol for posting. I'll post an answer after the required 2-day wait period.

emroberson's avatar emroberson  ( 2024-10-02 12:29:25 -0600 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2024-10-07 15:40:41 -0600

emroberson's avatar

I ended up looking at the ruby script differences between the export_gbxml and the export_sdd. Exporting to gbxml worked for me. The following ruby script showed a difference between def export_gbxml and def export_sdd: C:\Users\Eric\AppData\Roaming\SketchUp\SketchUp 2021\SketchUp\Plugins\openstudio\lib\CommandManager.rb

I changed the def export_sdd at the second if-statement to match the def export_gbxml: [if (path = UI.save_panel("Export SDD Input XML Model", ....] changed to [if (path = OpenStudio.save_panel("Export SDD Input XML Model", ....]

I was then able to save an .xml.

edit flag offensive delete link more

Comments

I have filed this at openstudio-sketchup-plugin#147 so it's fixed upstream, and added a Pull request to fix it

Julien Marrec's avatar Julien Marrec  ( 2024-10-07 16:24:21 -0600 )edit

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2024-10-01 16:26:57 -0600

Seen: 159 times

Last updated: Oct 07