shortcut for enable history

 From:  Michael Gibson
6615.4 In reply to 6615.3 
Hi nos, the problem there is: moi.geometryDatabase.getSelectedObjects().updateWithHistory won't work because getSelectedObjects() returns an object list, not just a single object. It's a single object that will have the updateWithHistory property on it, not an object list.

Try this one:

script: /* Toggle history update property on selected objects */ var objs = moi.geometryDatabase.getSelectedObjects(); if ( objs.length > 0 ) { var val = objs.item(0).updateWithHistory; objs.setProperty( 'updateWithHistory', !val ); }

- Michael