Browse By Tags

  • 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…
  • Documents Menu Commands for Flat Sets that are set to Final are greyed out

    When I create a command on the Documents Menu, the command is greyed out for flat sets that have the status of "Final". Is there any flag that I can set to enable the command for objects that are final? I need to be able to extract information using…
  • I am having error on call of aaApi_Initialize(AAMODULE_ALL); function

    Hello, In my code when I call aaApi_Initialize(AAMODULE_ALL); method to initialize my custom console application it is giving me hooks related initialization errors. My code is working on one machine but it does not work on another machine because of…
  • How to enable File Extension Filter and set the _AAOPENDOCSDLG2_PARAM::lpctstrFilter for the aaApi_DocumentSelectDlg?

    Hi All, I want to enable the File Filter control on the DocumentSelectDlg, I try to turn on the mask AAOPENDLG2_MASK_FILEEXTFILTER, and add param.lpctstrFilter = L "dwg;*.dwg" ; but I can't see the filter box on the dialog, so how to enable the…
  • 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
  • Return Table Values

    I need to retreive some basic information stored in a table in ProjectWise. The table itself is 3 columns. I've looked at aaApi_SelectTable() and aaApi_SelectColumns() but how can you combine these with a specific row? Say if I wanted the value in row…
  • Re: Can't call DLL function that makes ProjectWise API calls

    Ok, I got a test function to execute, but I'm still getting this error: Run-time error '49': Bad DLL calling convention I modified my code by splitting it into a header file and .cpp file, as follows: Header (myProject.h): namespace myProject…
  • connect to a datasource and enumerate its files in a console app

    Hi, I'm new to Bentley and Project Wise. For some integration work (with other products) I need to access a Project Wise datasource and enumerate all it files of a certain types. Here is what I got so far: int main(array<System::String…
  • 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…
  • PWISE SDK XML Functions

    Regarding document management functionality Are there any methods to get data in XML format? Ex return 1) Project list with folder structure related to it 2) Environment list in a project 3) Document list in a project/Folder 4) Document…
  • How to trigger check-in popup when closing a document opened using aaApi_OpenDocument()?

    When I open a document by clicking on its name in the project folder, and then close that document, I get a prompt for checking in the document, assuming that it was successfully checked out to me when I opened it. But if I open a document using aaApi_OpenDocument…
  • Progress bar control functions | Cancel

    I'm utilising the aaApi_ProgressControlCreateDefaultProgressControl()... but unable to cancel the operation via the cancel button displayed on the control? I've looked at aaApi_ProgressControlWasCancelled() aaApi_ProgressControlCancel() to no avail…
  • Server side menu?

    Hi, is it possible to deploy a custom projectwise menu or command via the server? The reson I ask is to avoid hard coding account details in assemblies and ease deployment. I have custom commands which require certain elevated rights (not specificaly…
  • PW New Project Wizard

    Hi, I've recently been messing around with the customprojwizard provided as part of the samples in the PW SDK. I noticed that the wizard in the sample does not extend/expose the security interface as the standard wizard does. I've created the…
  • User switch - Data buffer lost

    I need to switch user accounts during a Document command but after the switch I lose the DataBuffer containing my documents to process? Is there a way round this?
  • Re: Create Documents using SDK

    Dan, I tried using something similar to your code to upload a file to ProjectWise, but I keep getting error 50132: "The file does not exist." My code is basically the same, except I replaced the FileDlg calls with a function to convert CHAR* to LPCWSTR…
  • Set Project Environment ?

    How do you set an environment to a project using the sdk ? I hoped that the aaApi_CreateProject function would inherit the parent folder environment but unfortunately not. I can get the environment Id using aaApi_SelectEnvByProjectId but can't find…