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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement