How can I create an activity for data conversion in Design Automation API?


I'm prototyping a web service to convert data using Design Automation API in Autodesk Forge.

My approach is to invoke an activity that executes a script to import a target data file (such as STEP, IGES format). As an example, I created an activity to convert a STEP file to DWG as follows:

{ "HostApplication": "", "RequiredEngineVersion": "22.0", "Parameters": { "InputParameters": [{ "Name": "Source", "LocalFileName": "input.stp" }, { "Name": "HostDwg", "LocalFileName": "$(HostDwg)" }], "OutputParameters": [{ "Name": "Result", "LocalFileName": "output.dwg" }] }, "Instruction": { "CommandLineParameters": null, "Script": "import\ninput.stp\nsaveas\n\noutput.dwg\n" }, "Version": 1, "Id": "Step2Dwg" }

The workitem to invoke this activity was executed without errors, but the output file (output.dwg) had nothing imported from the input file (input.stp). Perhaps this is because some fields (e.g., AllowedChildProcess) were missing in the definition of the activity "Step2Dwg", but I do not know how to fix it.

My questions are:

<ol><li>How to fix the definition of the activity "Step2Dwg" to convert data successfully?</li> <li>Is there any other approach to create an activity to convert data successfully?</li> </ol>


You can use the Activity “Translate-STEP2DWG". It takes a .stp file as input and generate result.dwg as output. This is a public activity that anybody can send workitems against to it.

The activity is defined like this:

{ "Id": "Translate-STEP2DWG", "AppPackages": [], "HostApplication": "AcTranslators.exe", "RequiredEngineVersion": "22.0", "Parameters": { "InputParameters": [ { "Name": "HostDwg", "LocalFileName": "source.stp" } ], "OutputParameters": [ { "Name": "Result", "LocalFileName": "result.dwg" } ] }, "Instruction": { "CommandLineParameters": "-i source.stp -o result.dwg", "Script": "" }, "AllowedChildProcesses": [ ], "IsPublic": true, "Version": 1, "Description": "" }

Here is a sample workitem request body:

{ "ActivityId": "Translate-STEP2DWG", "Arguments": { "InputArguments": [ { "Resource": "https://s3.amazonaws.com/AutoCAD-Core-Engine-Services/TestDwg/3DStep.stp", "Name": "HostDwg" } ], "OutputArguments": [ { "Name": "Result", "HttpVerb": "POST" } ] } }


  • How can I create an activity for data conversion in Design Automation API?
  • java.util.zip.ZipException: duplicate entry: android/support/v4/view/KeyEventCompatEclair.class
  • Why is android project not opening properly in Android Studio?
  • How to deal with the repeated jar in Android Studio?
  • VB.Net Validate an xml against a schema (strange problem)
  • Error when i include gradle's library
  • Why does type double PI = 22/7 returns 3, but double PI = 22.0/7 or 22/7.0 returns correct result 3.
  • How to make flutter app responsive according to different screen size?
  • Pair Port Numbers from list after xlrd import
  • How to pass the values of user defined datatype variable to MS SQL from java using spring jdbc store
  • Pandas dataframe to numpy array
  • Building native openCV with NDK on android studio
  • StackOverflow-error when applying pyspark ALS's “recommendProductsForUsers” (although cluster o
  • Mechanize + Python: how to follow a link in a simple javascript?
  • pytest 2.3 adding teardowns within the class
  • Unable to resolve errors on sliding menu example with actionbarsherlock
  • Gradle exclude module does not work?
  • Facebook php app keeps looping in IE, is there a fix on server side?
  • C code do…while looping issue
  • WPF selected value in ComboBox
  • Is there a way to find out a database cursor is open or not in Java?
  • How to set fx:value using resource bundle?
  • Why does Request.QueryString[“path”] converts all + signs to spaces?
  • Java Scanner input dilemma. Automatically inputs without allowing user to type
  • Spring security and special characters
  • Deserializing XML into class C#
  • JSON with duplicate key names losing information when parsed
  • what is the difference between the asp.net mvc application and asp.net web application
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • php design question - will a Helper help here?
  • Matrix multiplication with MKL
  • AngularJs get employee from factory
  • C# - Getting references of reference
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Authorize attributes not working in MVC 4
  • python draw pie shapes with colour filled
  • Binding checkboxes to object values in AngularJs
  • How to Embed XSL into XML