Escaping out of editing a component
-
Sorry if this has been asked before but I searched and can't find an answer... though admittedly I'm not sure what to search for so I'll explain it best as I can...
When editing a group or component we can use the escape key to exit 'edit mode'... is there a way to do this with ruby? I tried
@model.selection.clearbut that doesn't work. I included a picture to help explain what I mean.

-
Something like:
model.close_active
Which goes up one level...
To go all the way back to themodel.entitiescontext use:
model.close_active until model.active_entities==model.entities -
UUgghhh never thought of searching for something with 'close' in it kept thinking 'escape'!
Thanks Tig! You da man... well tiger!
This is the code I'm using... anything more efficient?
while @model.active_entities!=@model.entities @model.close_active end -
Note that if only close the currently open instance. If you are deeply nested you need to loop until you are back in the root - (if that's what you desire). And before SU2014 the method was bugged and could mess up geometry if the close was undone. (The method actually creates an undo item)
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