Message 1 of 3
Importing Xgen Archives programatically?

Not applicable
01-18-2017
05:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I'm trying to import archives programatically (custom browser) and trying to sift through the python modules. Was able to do this fine with the importing of descriptions. However am running into errors when working with archives.
from xgenm.ui.widgets import xgArchiveFilesUI as xga xgaW = xga.ArchiveFilesUI(attr='percent') # No idea what to put for attr param but its required xgaW.addArchives(['//path/to/xarcFile.xarc'])
Error message:
# Error: XGen: XGen description not found. [collection26,description22] # # Error: XGen: Could not findFileInXgDataPath [collection26, description22] #
I could manually parse the text data myself and insert data...but would rather not! 😕
Any help on how i could go about this? I dont mind having the dialog about matching material file pop out still (saw this happens further down the addArchives() method
Cheers
Jono