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: 

Open file. Check available "design data"

1 REPLY 1
Reply
Message 1 of 2
Anonymous
345 Views, 1 Reply

Open file. Check available "design data"

project = app.data.dataProjects.item(0)
folder = project.rootFolder
fileUploaded = folder.uploadFile(str(path)) #Upload file

#---Wait when fileUploaded.uploadState==1

documents = app.documents
open(fileUploaded.dataFile,True)

 I upload .dwg file and check upload status. When file uploading complete i try open it but has error in Fusion 360

Untitled.png
How I can check when "Design data" is available?

 

 

 

1 REPLY 1
Message 2 of 2
liujac
in reply to: Anonymous

Hi,

 

There is no other way to check if the uploaded data is available. Ideally, the uploaded data should be available when the upload state is changed to adsk.core.UploadStates.UploadFinished. So it looks like a defect to me. I logged a defect (UP-30672) in our internal system for further investigation. One workaround for now is to sleep several seconds before opening the document. Thanks for reporting this issue.

 

Jack

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

Post to forums  

Technology Administrators