Skip to Main Content
Need Support? Let’s guide you to the right answer or agent.
Status Already exists
Created by Guest
Created on Sep 4, 2024

Programmatically executing the Project Publisher's 'Publish' functionality

  • The Business needs to standardize the settings that controls the creation of an official drawing package as deliverables for the different Business Units (as internal customers).

  • The official drawing packages would be made up of Hyperlinked drawings with the selected drawing sets and in a specific order.

  • The Internal Solar customers (engineering, shop floors, field techs, test, ...) have moved from reviewing, consuming and marking up printed sheets and are using computers, laptops and tables to view the PDFs. Some of the business units found the Project Publisher and have started creating their "own" version of the 'Combined (hyperlinked) Drawing Sets and adding them to their released drawing packages. Other business units are now interested in using these ad-hoc hyperlinked PDFs due to the reduction in navigational errors as well as the time savings.

  • We will create the .ppc file and we are looking for a programmatic way to use the Project Publisher to create the hyperlinked pdf based on the .ppc file.

  • Admin
    Todd Lenhardt
    Reply
    |
    Sep 6, 2024

    Our development team completed an initial discovery for this request. As a part of their findings, they recommend using DoPublish API function to execute Project Publisher silently (Publisher Dialog should not open)

    Please try the following in your plugin code module:

    1. Reference library ProjectPublisher.dll

    2. Call DoPublish function as followed:

    ECT.ECAD.ECTPublisher.Publisher.DoPublish(false, "default.ppc", null);

    **Notes regarding default.ppc:

    • can be replaced with different ppc file name

    • ppc file must be in C:\ProgramData\Bentley\Promise CONNECT Edition\Configuration\Datasets\Promise\Plugins\ProjectPublisher\config