I created a project from this tutorial.
How may I send a huge json file by user to be read in Command.cs
in Design Automation for Revit on cloud? I receive the file in DesignAutomationController.cs
using form, but i am unable to send it to Command.cs
as in this the url becomes way too huge.
XrefTreeArgument inputJsonArgument = new XrefTreeArgument()
{
Url = "data:application/json, " + ((JObject)inputJson).ToString(Formatting.None).Replace("\"", "'")
};
How huge is the json file? The workitem payload limit is only 16 kb.
We recommend embedded json only for small contents. For anything big, you may upload the json content to a cloud storage and pass the signed url to the file as input argument URL.
Design Automation API limits are defined here:
https://forge.autodesk.com/en/docs/design-automation/v3/developers_guide/quotas/