Iterate through folder and save Pro/E parts and assemblies as STEP file

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All, I have been working my way through Python trying to develop a script that will automate the following:
1. Iterate through all Pro/E prt & asm files in a defined folder and open them one at a time in Fusion 360.
2. Export the open file to STEP format, and/or all components of an assembly file.
3. Close the document and move to the next file.
The script to automate this process is turning out to be tougher than I thought. Most of my scripting experience has been in Solidworks VBA. I did find the script @BrianEkins made for Saving Files as an Image, but I believe that was for Inventor. I modified it within vscode for Python to try and match proper conventions, incorporating the ExportManagerAPI Sample.
Additionally, I am having issues trying to get vscode to debug properly; the launch.json file doesn't like localRoot and remoteRoot. Please see the below code. If you can give any insight at all in helping me figure out a solution, I would greatly appreciate it. Thanks!
import adsk.core, adsk.fusion, traceback