如何在APS中设置Inventor引擎的Design Automation速率限制?
如何在Curl请求中设置Inventor引擎的Processing Time限制
要调整Inventor引擎的最大处理时长(由limitProcessingTimeSec属性控制),你需要在提交workitem的POST请求体中,通过Quotas对象来配置该属性。以下是完整的Curl请求示例:
curl -X POST "https://your-api-endpoint/workitems" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_VALID_ACCESS_TOKEN" \ -d '{ "input": { "urn": "your-model-urn", # 其他输入配置参数,比如设计文件、处理指令等 }, "output": { "destination": { "region": "us-east-1" }, "formats": [ { "type": "step", "views": ["2d", "3d"] } ] }, "Quotas": { "limitProcessingTimeSec": 1200, # 自定义处理时长,示例为1200秒 "limitTotalUncompressedAppsSizeInMB": 500 # 保持默认或按需修改 } }'
关键说明
- 替换
https://your-api-endpoint/workitems为实际的API端点地址 - 替换
YOUR_VALID_ACCESS_TOKEN为有效的授权令牌 - 在
Quotas对象中修改limitProcessingTimeSec的值即可调整最大处理时长,若使用默认的900秒,可省略该字段(平台会自动应用默认值) limitTotalUncompressedAppsSizeInMB字段可根据需求保留默认值或修改
内容的提问来源于stack exchange,提问作者Terminator404
相关产品推荐
相关产品推荐

