"InternalValidationError: doc" with opening .dwg file.

"InternalValidationError: doc" with opening .dwg file.

Anonymous
Not applicable
776 Views
5 Replies
Message 1 of 6

"InternalValidationError: doc" with opening .dwg file.

Anonymous
Not applicable

Good day! Please, help me with this question.

documents = app.documents
            if fileUploaded:
                dfile = fileUploaded.dataFile
                if dfile:
                    try:
                        documents.open(dfile,False)
                    except:
                       pass

If I don't use pass command ".open" throws "Runtime Error: 2: InternalValidationError:doc". When I use pass,  .dwg file opens. But if in future I put sketches and bodies in it, I can't save this file, Fusion 360 crashes on saving. And Fusion 360 crashes even after reload until I delete saved files. (Open these files, close them and only then delete, because Fusion 360 reports that these files are in work.)

What this problem can be related with?

P.S. Sorry for my English.

0 Likes
777 Views
5 Replies
Replies (5)
Message 2 of 6

ekinsb
Alumni
Alumni

I just want to let you know that I've been able to reproduce the problem and we're investigating it now.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 3 of 6

Anonymous
Not applicable

Thank you!

0 Likes
Message 4 of 6

ekinsb
Alumni
Alumni

Can you please try it again?  I believe it should be fixed now.  It was an issue on the A360 side so there's nothing you need to update.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 5 of 6

ekinsb
Alumni
Alumni

Sorry, you can ignore my last message.  The problem is on the Fusion side when opening a file using the API.  A fix has been made but won't be available until the next major update sometime around September.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 6 of 6

Anonymous
Not applicable
Thank you for reply.
Waiting for the next update.
0 Likes