mazerab / design.automation-nodejs-pdf.exporter

[DEPRECATED] This app lets you export your DWG data, hosted on BIM360 or Fusion Team, into a PDF document
MIT License
2 stars 0 forks source link

Multisheet pdf export #3

Open jairoandre opened 4 years ago

jairoandre commented 4 years ago

Hello, Bastien. How are you?

I read you article about plotting DWG files to PDF using forge (https://customersuccess.autodesk.com/articles/plotting-dwg-files-to-pdf-using-forge), and in the end of this article you mentioned about a custom activity to plot a multi-sheet pdf. I've been trying to integrate the forge services on the system of my company and I'm tackle with this multi page DWG to PDF situation.

I tried to create a custom activity, but with no success:

{
  "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)"
    },
    "Result": {
      "verb": "post",
      "description": "Results",
      "required": true,
      "localName": "result.pdf"
    }
  },
  "id": "PlotToPDF",
  "engine": "Autodesk.AutoCAD+23_1",
  "appbundles": [],
  "settings": {
    "script": {
      "value": "_tilemode 1 -export _pdf _e _all result.pdf\n"
    }
  },
  "description": "PlotToPdf for all layouts custom"
}

Do you have an example of custom activity to do this export?

Sorry for bother you with this.

mazerab commented 4 years ago

Hello Jairo, thank you for reaching out. I would focus first on getting the AutoCAD add-in to do what you need, before you even look at using Design Automation API v3. Here is an article I found for AutoCAD with code sample to publish to multi-sheet DWF and PDF.

Once you have the AutoCAD add-in working, you should then review latest tutorial for Design Automation API v3.