@ivelin.peychev wrote:
Why doesn’t the following work?
def del_clips(): clips_ids = [clip_id for clip_id in rs.AllObjects() if rs.ObjectType(clip_id) == rs.filter.clippingplane] print len(clips_ids) for view in sc.doc.Views: sc.doc.Views.ActiveView = view result = rs.DeleteObjects(clips_ids) if result > 0: print "{} clipping plane(s) deleted".format(result) del_clips()I did not select only selectable objects I use rs.AllObjects(). That usually gets even hidden objects.
Why do I have to show the clipping planes before deleting them?
Posts: 1
Participants: 1