openstudio-sketchup-plugin icon indicating copy to clipboard operation
openstudio-sketchup-plugin copied to clipboard

Model does not display in SketchUp

Open macumber opened this issue 9 years ago • 19 comments

Model provided by @eringold (in issues repo) does not display in SketchUp when loaded. Double clicking spaces in the inspector causes the geometry to be shown. My guess is something is crashing silently when opening the file so that the sketchup entities are not created

macumber avatar Dec 11 '15 17:12 macumber

@eringold have you seen this on any other models?

macumber avatar Dec 11 '15 17:12 macumber

@macumber no, this was a completely new occurrence to me. Note: I was able to fix it by subdividing the large, >60-surface spaces into multiple smaller spaces.

eringold avatar Dec 11 '15 17:12 eringold

How did you create this geometry in the first place? Did you import this model from gbXML or something other than creating it in SketchUp?

macumber avatar Dec 11 '15 17:12 macumber

Nope, I traced over an imported dwg, then extruded with 'create spaces from diagram'.

eringold avatar Dec 11 '15 17:12 eringold

I'm having the same issue right now. Model was displaying fine. I closed sketchup and reopened it and there's nothing displayed though I do see everything in the model inspector

jmarrec avatar Jan 12 '16 12:01 jmarrec

If I change the version to 1.9.4 in text editor and try to open it in sketchup 2015 with OS 1.9.4 it doesn't work either.

I have many checkpoints so I pinpointed where it went wrong: right from the start. I had a functional model in 1.9.4, that I upgraded to 1.10.1. This works. Then my next checkpoint it already doesn't work.

Here's the changelog between the two:

  • I changed the building axis to 28 deg (from -0, default): that's not the cause, I checked.
  • I used the "On demand template" generator to create the midrise apartment space types and constructions (my original template is office) and checked "false" for "Set building defaults using new objects"
  • I renamed about 10 spaces and assigned space types, including some for the previously generated MidRise

I deleted in text editor all the generated info from the MidRise apartment (schedules, loads, constructions, rendering colors, etc) and now I can see the geometry in sketchup... Obviously this mean that my space types have been reset for these spaces, which is not something that I want.

Any idea?

jmarrec avatar Jan 12 '16 14:01 jmarrec

I also tried deleting all spaces (3 plenums) with 50+ surfaces, and the model loads.

I also did the opposite: deleted all spaces except these three, and the model loads too...

I'm confused now.

jmarrec avatar Jan 12 '16 16:01 jmarrec

The model with only the big plenums was loading. I split each plenum in two, now it won't load anymore. I thought maybe this had to do with the fact that it opened when I saved the model last from the API in command line, so I tried that too here, didn't work.

I emailed my model to you.

jmarrec avatar Jan 12 '16 18:01 jmarrec

Added second file from @jmarrec

macumber avatar Jan 13 '16 05:01 macumber

Somehow the space's SU entities are being deleted:

m = OpenStudio::Plugin.model_manager.model_interface.openstudio_model
s= m.getSpaces[0]
puts s.drawing_interface
  #<OpenStudio::Space:0x00000012f539c8>
puts s.drawing_interface.entity
   #<Deleted Entity:0x12a03680>
puts s.name
  Space 137
s.surfaces.each {|su| puts su.drawing_interface.entity}
  #<Deleted Entity:0x1433bee0>
  #<Deleted Entity:0x144c9fa0>
  #<Deleted Entity:0x144e2988> 
  #<Deleted Entity:0x144f9750>
  #<Deleted Entity:0x148ec6a0>
  #<Deleted Entity:0x1492afe0>
  #<Deleted Entity:0x14938848>

For the 1999.osm,

m.getSpaces.each {|space| s = space if space.nameString == "Space 130"}
puts s.drawing_interface.entity
  #<Deleted Entity:0x129a66b0>
- double click on space 130 in inspector and it shows up -
puts s.drawing_interface.entity
  #<Sketchup::Group:0x00000014296328>

Double clicking on the space in the inspector creates a new entity

macumber avatar Jan 29 '16 18:01 macumber

Tested this occurs with OS 1.10 and SU 2016, OS 1.10 and SU 2015, OS 1.9 and SU 2014, OS 1.8 and SU 2014

macumber avatar Jan 29 '16 19:01 macumber

http://forums.sketchup.com/t/groups-mysteriously-deleted-in-an-operation/19719/1

macumber avatar Feb 01 '16 18:02 macumber

I spent a little more than a day looking at this and don't have any leads. Are you able to get around this issue by simplifying geometry when tracing over DXF?

macumber avatar Feb 02 '16 20:02 macumber

For this specific building I spent a lot of time opening an earlier version that worked, getting the info I needed (surface name for example) and performing operations using the API, like setting adiabtic surfaces etc. After countless of them, the model started opening up in sketchup again...

I have no clue why but I was glad it did because I had windows and stuff to adjust or add, and I couldn't have done that in the dark, after 3-4 days of tinkering with it I was about to give up

Envoyé de mon iPhone

Le 2 févr. 2016 à 21:28, Dan Macumber [email protected] a écrit :

I spent a little more than a day looking at this and don't have any leads. Are you able to get around this issue by simplifying geometry when tracing over DXF?

— Reply to this email directly or view it on GitHub.

jmarrec avatar Feb 02 '16 21:02 jmarrec

I was able to work around by simplifying geometry. I appreciate your investigative effort, @macumber!

eringold avatar Feb 03 '16 16:02 eringold

yo tambien, +1

jmarrec avatar Feb 03 '16 17:02 jmarrec

I may have to close this as won't fix

macumber avatar Feb 24 '16 21:02 macumber

I won't object to that. I'll just think of this as a built-in reminder to not make overly complex models!

eringold avatar Feb 24 '16 21:02 eringold

Hit this again on a model that I made, re-opening

File added 1999c.osm

macumber avatar Mar 24 '16 18:03 macumber