Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

0 REPLIES 0
Reply
Message 1 of 1
grigdarius
124 Views, 0 Replies

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

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)

 

Tags (3)
Labels (3)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report