Based on the Hubs Browser Tutorial - have a look at that for more details.
Beyond the functionality of that tutorial, this updated version enables users to see all the Parameters available in the loaded Fusion model. It also lets you change the parameter values and create a new version of the model with the new parameter values that will be saved in the same folder as the loaded model with a GUID attached to the original name. For this operation the Design Automation for Fusion APS component is used.
In order to use this sample you need to do a few things and the easiest is to use the DA CLI Utility to do it.
You can use this config.json with the CLI utility. Just fill in the clientId, clientSecret and nickname (if you did not set it previously then it's the same value as clientId) in it then run this task from VS Code's:
- "Activity": this will create the activity
Now create .env file in the root of this project with the following content (replace the values with the correct strings):
APS_CLIENT_ID="your client id"
APS_CLIENT_SECRET="your client secret"
APS_CALLBACK_URL="http://localhost:8080/api/auth/callback"
APS_ACTIVITY="<nickname>.ScriptJob+prod"
SERVER_SESSION_SECRET="could be anything you want"
Please contact us via https://aps.autodesk.com/en/support/get-help.
This sample is licensed under the terms of the MIT License. Please see the LICENSE file for more details.