Browse By Tags

  • Create Rendition Dialog

    Does anyone know if it's possible to programmatically bring up the Create Rendition Dialog as shown below? Or do I have to create a custom dialog for an app I'm developing using the ProjectWise Rendition Service API. Thanks, Dave
  • [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 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…
  • Function aaApi_OpenDocument Not Found

    Hi, I'm using the file MostOfDavesClasses.cs. When I trying using the function aaApi_OpenDocument I get this error in my console: Unable to find an entry point named 'aaApi_OpenDocument' in DLL 'dmscli.dll' I tried building in both 32 and 64 bit…
  • [PW API C#] List all open datasource connections / sessions

    Hi all, I am having difficulty in creating a utility function to return a list of all open connections for an application. I can get a count of the open connections using aaApi_GetOpenDsHandles(ref dsCount); however the Pointer that is returned by the…
  • Any example in using aaApi_FindDocuments2 api in C# ?

    Hi all, I'm new in Microstation / ProjectWise programming and I'm searching for an example about using of aaApi_FindDocuments2 api in C# because I've some problem in parameters Marshaling. I've seen "MostODaveClasses.cs" where is implemented DocumentRequestColumns…
  • 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.
  • Sample in C# for creating Saved Searches

    I created a sample console application in C# that uses the PWSearchWrapper.dll assembly that Dave Brumbaugh provides to show a way to create global saved searches (datasource or for a specific work area). You can get the source code here: https://github…
  • C# Add-Ins for MicroStation

    I just posted some sample MicroStation Add-Ins to my Github site: https://github.com/DaveBrumbaugh/MostOfDavesClasses-CSharp-Wrappers-For-ProjectWise/tree/master/Samples/MSCE-AddIns You'll need MostOfDavesClasses.cs from the root of the site to build…
  • 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…
  • How to Set Project Default Preview Pane View

    The API contains a function aaApi_GetProjectDefaultPreviewPaneView function which we intend to use to obtain the view ID from the Parent Project when adding a new sub-folder under it (sub-Project?... trying not to be confusing here - no idea why what…
  • 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…
  • Do I need ProjectWise client to connect my C# application to ProjectWise Web Server

    Hello, I am new to ProjectWise programming and currently trying to have an existing C# based application connect to and communicate with ProjectWise Web Server (V8i). For now, the app extension will need to log in to the Web Server, read documents…
  • [c#] How can I call aaApi_CallDefaultWizard to bring up the default wizard in C#?

    I'm trying to upload a document to a PW project from a asp.net web application. I was able to use the API to login. I'm now trying to use the aaApi_CallDefaultWizard to bring up the wizard to upload a file. I have declared the function like this: …
  • 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…
  • Stream a text file from ProjectWise

    Is it possible to stream a text file from ProjectWise? I noticed the DocFetchFlag "AADMS_DOCFETCH_STREAM_SUPPORTED" I want to pass the streamed contents to a WinForm textbox which acts as a preview pane. Cheers
  • aaApi_ProgressControlWaitOnThread C# | Entry Point Not Found

    Having difficulty calling the following function: aaApi_ProgressControlWaitOnThread Error entry point not found? this is the code I use to call [DllImport("dmawin.dll", CharSet = CharSet.Unicode)] public static extern int aaApi_ProgressControlWaitOnThread…
  • Create project tree, using c# for winForms project

    I'm trying to create a PW navigator in c# using the SDK c++ sample "Navigator". I have created my own c# wrapper but struggling with the implementation. Below are the wrapped functions [DllImport("dmawin.dll", CharSet = CharSet.Unicode)] public static…
  • Can't call DLL function that makes ProjectWise API calls

    Using Visual C++ (in Visual Studio 2012), I've made a DLL with a function openDoc(int projID,int docID) that calls the ProjectWise API to open a document. I'm trying to call this function from either C# or VBA, but haven't succeeded with either one…
  • 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