EBDN - Community - Question & Answers

  Thursday, 30 January 2025
  1 Replies
  2.4K Visits
0
Votes
Undo
Hello,

where will I find a list of all available parameters for the call of the SmartPdf via VBA by "Export2PDF.bas2PDFMain.Run" for EB2025 ?
Where will I find a commented example for this?

Thanks an regards,
Sven
5 months ago
·
#2827
0
Votes
Undo
Hello Sven,

macro is rewritten to C# so path is now "Export2PDF.AssistantRun".

Only the first two parameters are required; all others are optional.\
Boolean parameters can be given as `true`/`false` or 1/0.\
ObjectItem parameters can be given as a string OID; or as an `ObjectItem`
instance.

- [0] output path (string)\
Path of the *directory* where the output Pdf will be placed.
- [1] start object (ObjectItem)\
Start object for the export. Function depends on mode; but mostly corresponds
to the project being exported.
- [2] show dialog (Boolean, default **true**)\
Whether the assistant UI should be shown.
- [3] show documents bookmarks only (Boolean, default **false**)\
The produced bookmark tree will only show the documents node, not equipment or functions.
- [4] export for revision (number, default **0**)
- 0 = normal mode
- 1 = revision export
- 2 = with clouds
- 3 = single sheet
- [5] show options button (Boolean, default **true**)\
Show option button in UI.
- [6] sheet collection (ObjectItemCollection, default **null**)\
A list of sheets to include in the export. If `null`, all sheets are exported.
- [7] open after publishing (Boolean, default **false**)\
Automatically open the final PDF in the default system PDF viewer.
- [8] one Pdf per drawing (Boolean, default **false**)\
Produce a separate output Pdf per drawing.
- [9] show sheet comment in bookmark tree (Boolean, default **false**)
- [10] show material number in tooltip (Boolean, default **false**)
- [11] documents name (string, default *localized designation of Documents*)\
Label of the Documents node in the bookmark tree.
- [12] equipment name (string, default *localized designation of Equipment*)\
Label of the Equipment node in the bookmark tree.
- [13] functions name (string, default *localized designation of Functions*)\
Label of the Function node in the bookmark tree.
- [14] cross-references name (string, default **empty string**)\
Label of the Cross-Reference node in the bookmark tree (unused).
- [15] equipment navigation (Boolean, default **true**)\
Generate navigation tree for equipment
- [16] functions navigation (Boolean, default **true**)\
Generate navigation tree for functions
- [17] show cross references (Boolean, default **true**)\
Include cross references in tree
- [18] local files (array of strings, default **null**)\
A list of files to splice into the output Pdf. Each entry of the array has
the format "bookmark name;path to file".
- [19] color as black (Boolean, default **false**)\
Output single Pdfs as black-on-white.
- [20] attach pdf files inserted into documents folder (Boolean, default **false**)\
Include external document pdfs into the output pdf.
- [21] enable hyperlinks (Boolean, default **false**)
- [22] hyperlink device types (array of numbers, default **null**)\
A list of device TIDs included in hyperlink processing.
- [23] attach local files from hyperlinks (Boolean, default **false**)\
Whether URLs that resolve to local files should be included directly.
- [24] resume batch export (Boolean, default **false**)
- [25] job object (ObjectItem, default **null**)\
If the previous parameter is true, this is the job object that is resumed.


Best Regards,
Jakub
Sven Börner-Sachs set the post as Critical priority — 1 year ago
Sven Börner-Sachs set the type of the post as  Question — 1 year ago
  • Page :
  • 1
There are no replies made for this post yet.