This is Design Automation client is used to run forge Design Application, that can upload an input file to Azure Blob container, change its width
and height
parameter and save the output file to Azure container, download locally.
DA client is highly customizable CLI utility can be used for various DA apps. At a broad level,
- inputs are uploaded to Azure storage container,
- generates a readable signed url
- output objects are uploaded to writeable azure SAS url
- urls are set in workItem spec
cd da
touch appsettings.users.json `feed with your Forge Credentials, Azure credentials`
dotnet build
dotnet run -i "<inputFile>" -o "<outputFolder>"
appsettings.users.json
{
"Forge": {
"ClientId": "",
"ClientSecret": ""
},
"AzureCloudStorage": {
"StorageConnectionString": ""
}
}
launchsettings.json
{
"profiles": {
"da": {
"commandName": "Project",
"commandLineArgs": "-i "input.ipt" -o "output",
"workingDirectory": ".\\cli\\da",
"environmentVariables": {
"FORGE_CLIENT_ID": "",
"FORGE_CLIENT_SECRET": "",
"STORAGECONNECTIONSTRING": ""
}
}
}
}
edit launchsettings.json
launch da profile.
This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.
Madhukar Moogala, Forge Partner Development @galakar