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: 

documents.open 'visibile' argument

1 REPLY 1
SOLVED
Reply
Message 1 of 2
p.seem
238 Views, 1 Reply

documents.open 'visibile' argument

Is anyone able to explain the purpose of the 'visible' argument in the documents.open routine?  The help file says "Specifies if the document should be opened visibly or not." But I can't see any difference in the result whether I use

 

app.documents.open(myFile, False)

or 

app.documents.open(myFile, True)

(where myFile is a fusion 360 design file) .

 

In either case the new model opens up in a new tab, and becomes the active document.

 

Thanks for your feedback.

1 REPLY 1
Message 2 of 2
ekinsb
in reply to: p.seem

The intent of that argument is that the document should open but not be visible in the UI.  I know that this wasn't originally possible but we still added the argument with the intent that it would be available and then it wouldn't require a change to support it.  I know some work has been done to support this but apparently it's not finished yet because I just verified that both the open and add methods both will result in a visible document.  Actually the add method fails with a "not implemented" failure.

 

So this capability is still a work in progress and the current problem is that the documentation should indicate that only a value of True is current supported.  I'll get it updated for the update in November.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog

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