You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letobjectId= rememberedObjects.[message].[0]// this may raises an exception if the key does not exist, to trigger reselection
144
-
if printDescr then
145
-
// RhinoScriptSyntax.PrintfnBlue "GetObjectAndRemember for '%s': one %s" message ( RhinoScriptSyntax.ObjectDescription(objectId)) // this print statement also raises an exception if guid object does not exist, to trigger reselection
146
-
RhinoScriptSyntax.Print $"GetObjectAndRemember for '%s{message}': one %s{ RhinoScriptSyntax.ObjectDescription(objectId)}"
147
-
elif(leto= RhinoScriptSyntax.Doc.Objects.FindId(objectId)in isNull o || o.IsDeleted)then
148
-
failwith "GetObjectAndRemember"// to trigger reselection if object does not exist anymore
elif(leto= RhinoScriptSyntax.Doc.Objects.FindId objectIds.[0]in isNull o || o.IsDeleted )then
160
+
get()
161
+
else
162
+
if printDescr then
163
+
RhinoScriptSyntax.Print $"GetObjectAndRemember for '%s{message}': {RhinoScriptSyntax.ObjectDescription(objectIds.[0])}"
164
+
objectIds.[0]
165
+
166
+
156
167
///<summary>Clears all remembered objects form internal Dictionary that where added via rs.GetObjectAndRemember() or rs.GetObjectsAndRemember()</summary>
0 commit comments