@clement wrote:
Hi @dale,
i accidentally used
EnsurePrivateCopy
on an InstanceDefinition which crashed RH6 caused by some kind of overflow. To reproduce:import Rhino def DoSomething(): msg = "Select block instance" obj_type = Rhino.DocObjects.ObjectType.InstanceReference rc, obj_ref = Rhino.Input.RhinoGet.GetOneObject(msg, False, obj_type) if rc != Rhino.Commands.Result.Success: return iref = obj_ref.Object() if not iref: return idef = iref.InstanceDefinition if not idef: return try: idef.EnsurePrivateCopy() except Exception as ex: print ex
_
c.
Posts: 1
Participants: 1