Need help with how to select and open a file

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am having a really hard time understanding how the API functions with basic tasks and it would really help if someone could explain how the API can be used to select and open a file.
My app can use forge to let a user browse through their files/folders and select a file. I need to be able to open that file in Fusion 360 and then edit the parameters. Unfortunately, I can't seem to get started.
There is a Documents Object that has an open method. It seems as it this is the method that I should be using. However, that open method calls for a "dataFile" which is literally described as "The item to open." Is this an ID or the object? If you need the full object, how do you go about pulling that object using an id?
I already have IDs from the forge process, but I can't seem to do anything with those IDs. It seems to me that using the Documents object and then open method, I should be able to grab the dataFile and then open a file using that dataFile. However, I see no process by which a dataFile can be obtained using an ID or anything else.