Browse By Tags

  • Issue regarding creating new PWSession using C#

    I tried using to generate a login session. I declared the new PWSession as below but I get the following error I looked up communities and I get the following information [https://communities.bentley.com/products/programming/projectwise_programming/f…
  • 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…
  • Creating new work area attributes using PW SDK

    I'm having some difficulty creating new work area attributes using the SDK (aaOApi_CreateAndInitializeAttribute), specifically assigning the control type i.e. none, pick list or select: using the following function the attribute is created but it…
  • 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…
  • C# aaApi_Login3 with federated IMS accounts. how to register callback

    I'm having trouble getting the aaApi_Login3 api to work. I'm pretty sure its with the callback to get the IMS user id because I'm not really familiar with that. here is my api calls and delegate for the callback (note my API wrappers and delegate…
  • adding menu in PW-explorer from c#.net

    I'm new to PW Api, I was looking on the c++ samples (mymenu) in the SDK folder. Is there a way to add menu from C#? Online posts are too old, just checking if anything new came. Thanks
  • C# aaApi_GetUserStringSetting not returning working directory correctly

    I'm updating my c# code and saw that the aaApi_GetWorkingDirectory function call is Deprecated and it said to use aaApi_GetUserStringSetting() instead. so I switched my code to use the aaApi_GetUserString Setting to get the working directory but it…
  • C# aaApi_MonikersToStrings not working PW address to folder

    I have a stand alone C# application that performs some things at a folder location. I am updating it to now work for a projectwise folder location. the user hits a search button in the application window which brings up a folder select dialog. after…
  • c# pass PW initialize and login into a worker_DoWork thread?

    I have a standalone C# application with the user will select a location in projectwise and then the application will do some stuff like look for folders and files. so when the user goes to select a location they are prompted to log into a datasource…
  • how to get all documents within a Project folder and its sub-folders?

    looking for some direction on which API calls I should be using to achieve this. I have an C# app that I'm updating to work with projectwise. I need to loop through all the documents within a folder and its sub-folders. so for I have used.... …
  • C# aaApi_GetOpenDsHandles

    First off, apologies for yet another IntPtr related question... How do you iterate the datasource handles (HDSOURCE*) generated by aaApi_GetOpenDsHandles in c#
  • RE: Get document environment attribute values

    During a prior Communities update links to some files were disassociated. Please refer to the unsupported "ProjectWiseCSharpSamples.zip" attached at the bottom of this response: Call for a simple C# example to show the login dialog HTH, Bob
  • [C#] Orchestration Framework, Custom dispatchers and processors

    I'm currently looking at the feasibility of using the Orchestration Framework (Bentley Automation Services/ ICS for PDF) for document publishing etc. from/to document repositories in addition to ProjectWise. I am looking for more detailed documentation…
  • 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…
  • 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…
  • 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!
  • ProjectWise SDK and C# Wrapper Classes - Heap Corruption

    Hi everyone, I've hit a bit of a brick wall and I am running out of clues on how else to debug this problem. In a nutshell, I've got C# wrapper classes written around the ProjectWise API and in turn, this library is consumed and used by an MVC3 web…
  • Using ProjectWise Web Services to index a file

    I'm trying to use the PWWS interface to upload files into the repository. The documentation indicates that this can be done via a POST; however, it also says that the post must use a multi-part form content type. The .NET WebClient implementation doesn…
  • 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