12 Jul 2023
Call For Action: Design Automation for AutoCAD
A new version of AutoCAD Engine is deployed on preproduction URL.
You can duplicate or update the existing activity’s Engine Version to 24.3 and test with preproduction URL
Engine Version : Autodesk.AutoCAD+24_3
Preprod Base URI : https://developer.api.autodesk.com/preview.da/us-east/
Sample Code :
Activity:
curl --request POST \
--url https://developer.api.autodesk.com/preview.da/us-east/v3/activities \
--header 'Authorization: Bearer abc' \
--header 'Content-Type: application/json' \
--data '{
"commandLine":[
"$(engine.path)\\accoreconsole.exe /i \"$(args[HostDwg].path)\" /s $(settings[script].path) /suppressGraphics"
],
"parameters":{
"HostDwg":{
"verb":"get",
"description":"Host drawing to be loaded into acad.",
"required":true,
"localName":"$(HostDwg)"
}
},
"id":"getstatus",
"engine":"Autodesk.AutoCAD+24_3",
"appbundles":[
],
"settings":{
"script":{
"value":"_STATUS\n"
}
},
"description":"Status details of AutoCAD Drawing"
}'
Note : After creating activity, you need to create a version and alias, refer tutorial on APS documentation.
Workitem:
curl --request POST \
--url https://developer.api.autodesk.com/preview.da/us-east/v3/workitems \
--header 'Authorization: Bearer abc' \
--header 'Content-Type: application/json' \
--data '{
"activityId":"adnxyz.getstatus+preview",
"arguments":{
"HostDwg":{
"verb":"get",
"url":"https"://developer.api.autodesk.com/oss/v2/signedresources/25bb128b-8740-41ad-b23b-e927bf381592?region=US
}
},
"limitProcessingTimeSec":900
}'