• Some sample code for using C# with the ProjectWise SDK

    Dan Williams
    Dan Williams
    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…
    • over 4 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Credential Expiration

    David Hahn
    David Hahn
    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…
    • Answered
    • over 4 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Documents Menu Commands for Flat Sets that are set to Final are greyed out

    Per Bodin - AEC AB
    Per Bodin - AEC AB
    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…
    • Answered
    • over 9 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • I am having error on call of aaApi_Initialize(AAMODULE_ALL); function

    Atul
    Atul
    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…
    • Answered
    • over 9 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • How to enable File Extension Filter and set the _AAOPENDOCSDLG2_PARAM::lpctstrFilter for the aaApi_DocumentSelectDlg?

    ware my
    ware my
    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…
    • Answered
    • over 9 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Stream a text file from ProjectWise

    matinau
    matinau
    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
    • Answered
    • over 9 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Return Table Values

    matinau
    matinau
    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…
    • Answered
    • over 9 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Re: Can't call DLL function that makes ProjectWise API calls

    joshua sorkin
    joshua sorkin
    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…
    • over 9 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • connect to a datasource and enumerate its files in a console app

    Lloyd Dupont
    Lloyd Dupont
    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…
    • over 10 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Can't call DLL function that makes ProjectWise API calls

    joshua sorkin
    joshua sorkin
    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…
    • over 10 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • PWISE SDK XML Functions

    ame54
    ame54
    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…
    • over 10 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • How to trigger check-in popup when closing a document opened using aaApi_OpenDocument()?

    joshua sorkin
    joshua sorkin
    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…
    • over 10 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Progress bar control functions | Cancel

    matinau
    matinau
    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…
    • over 9 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Server side menu?

    matinau
    matinau
    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…
    • over 9 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • PW New Project Wizard

    Jemaine Shezi
    Jemaine Shezi
    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…
    • over 10 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • User switch - Data buffer lost

    matinau
    matinau
    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?
    • over 9 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Re: Create Documents using SDK

    joshua sorkin
    joshua sorkin
    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…
    • over 9 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • Set Project Environment ?

    matinau
    matinau
    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…
    • over 9 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum