Message 1 of 3

Not applicable
11-22-2018
03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
I've coded a Python script to export a list of assemblies as JT files. It works fine.
The export command is, after defining the outputfilename
oDoc.SaveAs(OUTPUT_PATH, True)
The problem is that it create a JT file in version 7.0 and only monolitic.
From the VBA Version I found the possibility to pass options to the SaveCopyAs command.
oContext = invApp.TransientObjects.CreateTranslationContext()
oOptions = invApp.TransientObjects.CreateNameValueMap()
oOptions = oDoc.SaveCopyAs(oDoc, oContext, oOptions, OUTPUT_PATH)
My problem are first the SaveCopyAs command seems not working through win32com.
Second I didn't figure out how to pass the options (as list, as dictionary). That's probably the reason why it doesn't work.
Solved! Go to Solution.