Reload STEP file on change; keep view position
All  1  2-3

Previous
Next
 From:  Michael Gibson
10437.2 In reply to 10437.1 
Hi NaN, sorry no MoI does not currently have any mechanism in it to monitor a file for changes.

A shortcut key reload script like you were trying to do should be possible though, it's the fileNew part of it that will reset your viewports. The fileImport part should read in the file and not disturb any of the current views.

So instead of doing fileNew try deleteAll instead, like this:

script:moi.geometryDatabase.deleteAll(); moi.geometryDatabase.fileImport("<path-to-my-stepfile>");

- 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:  NaN
10437.3 In reply to 10437.2 
Yay, that works! Pressing a button is ok :)
Thanks 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
 

Reply to All Reply to All

 

 
 
Show messages: All  1  2-3