14 Oct 2024

ACC API: Export 2D View and Sheet of Revit or DWG to PDF

ACC Files has provided API to export pdf files to pdf with markups and hyperlinks. Now, this API extended the ability to export 2D View and Sheet of Revit or DWG to PDF. The usage is same as before (see this tutorial), while a few notes to be highlighted:

  • This API supports to export DWG files which are uploaded after May 1, 2023.
  • For RVT files, 2D views and sheets can only be exported from the files of Revit 2022 or newer versions. The name of each sheet or view in the exported result is a combination of the type, level name, and sheet/view name, e.g., Sheets - A001, Views - Structure Plan - A001.
  • This API is based on the extraction process of APS. If the process has not been completed, the API will skip such file. It only handles those files whose viewerable data is ready. So, this time, this API adds the status of partial success. e.g.
{
  "id": "5b4bb914-c123-4f10-87e3-579ef934aaf9",
  "status": "partialSuccess",
  "result": {
    "signedUrl": "https://signedUrl",
    "failedFiles": [{
      "id": "fileUrn",
      "reason": "ERR_NO_PROCESSABLE_FILES",
      "detail": "This file does not contain any 2d pdf files or still under processing."
    }]
  }
  • This API works with files in ACC only. If you want to export files from other sources, you would have to turn to other solutions such as by Design Automation of APS (see the other blog).

Please check previous blog for more details on how to use this API. And product help can be a reference on relevant features. Should you have any questions, please feel free to contact aps.help@autodesk.com

 

Related Article