Save a Snapshot (different way)
All  1-3  4-5

Previous
Next
 From:  Michael Gibson
7397.4 In reply to 7397.3 
Hi Scott,

> Thanks Michael!
> Should it start with:
>
> moi.geometryDatabase.selectAll();

You can put that at the start if you like - but the above script already does that just right before the call to moi.geometryDatabase.fileExport(), I've highlighted it here:

script: /* save snapsnot to .3dm file */ var name = moi.geometryDatabase.currentFileName; if ( !name ) { moi.ui.alert( 'filename not set' ); } else { name = name.substr(0,name.length-4); var date = new Date(); name += (date.getMonth()+1) + '_' + date.getDate() + '_' + date.getFullYear() + '_' + date.getTime() + '.3dm'; moi.geometryDatabase.selectAll(); moi.geometryDatabase.fileExport( name ); moi.geometryDatabase.deselectAll(); }

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  scott (SSHWARTS)
7397.5 In reply to 7397.4 
Oh! Didn't see it for some reason. Thanks this works great.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-3  4-5