When I delete unused zone, it throws bad cast error
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
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.
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
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.