Message 1 of 1
Using post config file from the Hub for PostProcessInput.create()

Not applicable
03-15-2021
04:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am trying to use post configuration file from the Hub for PostProcessInput.create() function. I can retrieve it from the Hub as a DataFile using code shown below but how I can read it or pass it to PostProcessInput??? Or is there some other way?
app = adsk.core.Application.get()
current_hub = app.data.activeHub
for dataProject in current_hub.dataProjects:
if dataProject.name == "Assets":
hub_POST_datafolder = dataProject.rootFolder.dataFolders.itemByName("CAMPosts")
post_configs = []
for post_file in hub_POST_datafolder.dataFiles:
post_configs.append(post_file)