When I delete unused zone, it throws bad cast error

asked 2015-09-11 04:45:49 -0500

Gurneet gravatar image

updated 2017-05-03 19:23:19 -0500

Hi,

When I use the remove unused zone script and delete unused zone while running the osm file either the openstudio application crashes or it throws an error in modeltoidf i.e. "Bad cast". Any suggestions

Regards

edit retag flag offensive close merge delete

Comments

Is SketchUp crashing when you run the user script or is the OpenStudio Application crashing later on when you load the osm? What happens if you manually delete the zones in the OpenStudio application. Also what version of OpenStudio are you using and was the OSM originally made with an earlier version.

David Goldwasser gravatar image David Goldwasser  ( 2015-09-11 08:34:43 -0500 )edit

I am using Openstudio 1.8. In sketchup , I used the script in Remove Unused Thermal Zones, under OpenstudioScript-Add/Alter Model. It say successfully removed XX zone, then when i open the file in openstudio and try to run, it either crashes or throws an error bad cast. OSM was not made in an earlier version

Gurneet gravatar image Gurneet  ( 2015-09-11 09:35:30 -0500 )edit
1

Without knowing the history of your file hard to know for sure, but my guess is you have some orphan objects left behind from the thermal zone. There was an update to the diagnostic script in the SketchUp plugin to clena this up. Try running that and then open the resulting diagnostic file in the OpenStudio application. See if that works

Here is documentation on the diagnostic script.

David Goldwasser gravatar image David Goldwasser  ( 2015-09-11 10:42:28 -0500 )edit