简体   繁体   中英

How to pass a huge json file to the Command.cs in forge api design automation for revit?

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM