Open file. Check available "design data"

Open file. Check available "design data"

Anonymous
Not applicable
561 Views
1 Reply
Message 1 of 2

Open file. Check available "design data"

Anonymous
Not applicable
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?

 

 

 

0 Likes
562 Views
1 Reply
Reply (1)
Message 2 of 2

liujac
Alumni
Alumni

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