How to import a step file that determines the path through a shortcut key

 From:  Michael Gibson
11236.2 In reply to 11236.1 
Hi c3g, you can set up a shortcut key that loads a specific file like this:

script:moi.geometryDatabase.open('e:\\test.step');

That will do the same as using File > Open, and it will show the "Save changes?" dialog if you have any unsaved changes. You can prevent that "Save changes?" dialog from showing by passing in an additional optional parameter like this:

script:moi.geometryDatabase.open('e:\\test.step', false);

If you want to add the contents of the file to the current model while keeping existing objects in place, (doing the same as File > Import instead of File > Open) use this instead:

script:moi.geometryDatabase.fileImport('e:\\test.step');

Hope that helps!

- Michael