Deleted Shadow Info???
-
I started a new drawing, and got an error in one of my ruby files because I was trying to access deleted shadow info. I'll never be able to repeat it again. Here is what happens when I try to access shadow info from the ruby console:
model = Sketchup.active_model #<Sketchup;;Model;0xe789620> si = model.shadow_info #<Deleted Entity;0xe7872e0>
It reports the SketchUp Shadow Info as a deleted entity.
(This was right after starting a new model)-
Has anyone ever seen a case where the shadow info was deleted?
-
Even though it may never happen again, I like to add check to Ruby Files so they don't die when something goes wrong. Does anyone know how to check for a "Deleted Entity". If so, I could avoid trying to access the shadow info when is was deleted.
-
-
-
I've had that happen with the Pages object, the Layers object, the Definitions object, and I think the View object. It's a strange situation and I haven't been able to reproduce it consistently.
-
Did you try the .valid? method?
-
-
Al,
Are you on a mac or PC?
-
I was on a PC.
I'll try the valid check. I can create an ordinary deleted entity - by deleting one - but I would still like to know how this state happens.
Advertisement