Browse By Tags

  • aaOApi_SetInstanceAttrStrValueExt String Format for Date

    Is there a specific format that the string value needs to follow in order for this function to correctly convert it to the required data type when setting Date Data Types? I have tried several standard Date string formats e.g.(8/11/2023) without success…
  • aaApi_UserManagementDlg displays the dialog, but its Users/Groups/Lists nodes are empty

    Do we need to fill a buffer or something prior to calling the aaApi_UserManagementDlg function in order for it to function correctly? The dialog displays on the screen okay, but left most list control only shows the default root nodes which do not expand…
  • [C# PW API] Workflow Rules Engine - push document to next state

    Hi all, I have been attempting to push a document to a different state using the aaApi_WREDoExecute method listed in the API. Everything seems to be working to a certain degree, except the response I get is: "Execution command identifier '{urn:bentley…
  • [C# PW] Workflow Rules Engine API - Syntax error?

    Hi all, I have been attempting to push a document to a different state using the aaApi_WREDoExecute method listed in the API. Everything seems to be working to a certain degree, except the response I get is: "Execution command identifier '{urn:bentley…
  • [C# PW API] Execute saved search and return environment attributes for results

    Hi, I am trying to execute a saved search via PW API, and would like to return all attributes from a specific environment along with the results. So far I have the following code: public static int GetSavedSearchQueryId(string searchName, int parentQueryId…
  • ProjectWise API accepts incorrect values for Document Code

    Hi Someone who can help me, would be greatly appreciated. Will try to explain in my poor English Has developed a function for sending files with metadata (attribute values) from a document system to a ProjectWise data source. The ProjectWise data…
  • Add Change State Approve/Revise button to ProjectWise toolbar

    Hello All, In ProjectWise Explorer CONNECT Edition, we can get Change State/Next/Previous buttons to the toolbar, but the Approve and Revise are missing. Is it possible to add via ProjectWise SDK/API? Any advice? View > Toolbar > Customize > Commands…
  • How to get value of lProjectIds and plDocumentIds in aaApi_DocumentSelectDlg with C#

    lProjectIds and plDocumentIds give values of 0 and -734941776. I've declared them as Integers but the documentation states LPLONG and array of project IDs. Not sure if I need to Marshal the result.
  • Intermittent SSO failures via API

    Hey all, Has anyone ever encountered intermittent failures when logging in to datasources via the API with SSO? We've switched to using SSO vs a logical account to log in with some of our C# Windows Services code. Most of the time, the login works just…
  • Some sample code for using C# with the ProjectWise SDK

    I posted some parts of these two sample customizations recently, but to make things easier for those looking for the full Visual Studio Projects, you can download the code from GitHub. First of all, you will need Dave Brumbaugh's MostOfDavesClasses, but…
  • Credential Expiration

    Hey all, I'm hoping someone can point me in the right direction. I have a window service that uses the projectwise APi to login, connect to a datasource, preform various operations to get data from projectwise, including copying files out of the system…
  • Proper SDK Method of Moving Folder of Files & Sub-Folders

    We have an external database tool that is used in issuing file Transmittals to customers. When a project utilizes ProjectWise (not all do) then this is done within the ProjectWise environment. So when a new Transmittal is started, the tool creates a …
  • Setting document properties through API

    I have been using aaApi_GetDocumentStringProperty to obtain property values from document. That works pretty straight forward. Unfortunately I also want to assign new values to the document properties. I cannot seem to find something like "aaApi_SetDocumentStringProperty…
  • Re: Assistance with writing dll containing specific function that will be used in C# project

    Mike Lazear posted a pretty good summary of the samples included with the SDK a while back, but apparently his summary isn't available anymore. If you search the samples, you will find that "environment", "pw_navigator" and "vaultlist" all are standalone…
  • Export to PDF

    Hi, guys. I have a simple question: For each document in PW, i need to generate a PDF of this file. Is there a simple way to implement something like that using PW SDK? I have no idea where i should begin to do it. Thanks!
  • Re: Using aaApi_GetLinkDataDataBufferColumnValue, a string value is sometimes not returned

    Here is an old example I did that uses this function. Take a look maybe it will help. Mike
  • Assistance with writing dll containing specific function that will be used in C# project

    Anonymous
    Anonymous
    We are wanting to create a library (dll) for searching Projectwise and returning document information. The searches will be against a known environment and include criteria that uses both document properties and attributes from the environment. The library…