My script for Forge Design Automation API will produce a couple of outputs such as dxf, png, PDF. Can I package them to an zip with WorkItem? The below is the code snippet of the WorkItem I created. It will fail because in default, it can only download single format of output.
var wi = new WorkItem()
{
Id = "", // Must be set to empty
Arguments = new Arguments(),
ActivityId = activity.Id
};
wi.Arguments.InputArguments.Add(new Argument()
{
Name = "HostDwg", // Must match the input parameter in activity
Resource =
"http://download.autodesk.com/us/support/files/autocad_2015_templates/acad.dwt",
StorageProvider = StorageProvider.Generic // Generic HTTP download (vs A360)
});
wi.Arguments.OutputArguments.Add(new Argument()
{
Name = "Results", // Must match the output parameter in activity
StorageProvider = StorageProvider.Generic, // Generic HTTP upload (vs A360)
HttpVerb = HttpVerbType.POST, // Use HTTP POST when delivering result
Resource = null, // Use storage provided by Design Automation
});