How to access ProjectWise via VB.net or VBA

Hi,

We are introducing ProjectWise (XM) in our company to manage our operational data. In this process I need to customize some of our self written applications. Those are written in vba (mvba) or VB.net and are used to read and scan files (ascii format) and drop them - dependent on the file content - in a directory on a server.
Now we want our tools to store the files in ProjectWise.

For now I searched for some simple examples how to access ProjectWise with Microstation VBA (e.g. ‘Using The ProjectWise API In VBA') or VB.net but none of the posted ones did work well (as I didn't have the SDK?). Does anyone have a good sample to start with and to get used to this topic (as I am new to this)?
I just need to login to the server, create a document and maybe attach some environmental attributes. Do I need to have the SDK installed for my purpose?

I'd be grateful for any help and example.

Best regards,

Maik.

Parents
  • Maik,

         Yes you need the SDK in order to access the libraries that tie into Projectwise Explorer.  I would recomend writing a COM object in C++ for your ProjectWise funtionality (init, logon, check out file, check in file, etc.)  You can then call the COM object with MSVBA.  If you want to use VB.Net, you will still need to write a wrapper class for the function calls you want to use.  Somebody posted an example of using VB with the api, but VB is limited what it can do without some interface help.  At least this has been my experience.

  • Maik,

     Yes you will definately need the SDK. Based on your example of what you are trying to achieve you can do this all directly within the VBA application without the need for COM. You will need the SDK docs (help files) to locate the functions you require, then you can declare them in your VBA/VB/VB.NET code.

     We have done quite a few VBA routine amendments for existing customers to integrate legacy applications into ProjectWise.

     HTH

     Ron

Reply
  • Maik,

     Yes you will definately need the SDK. Based on your example of what you are trying to achieve you can do this all directly within the VBA application without the need for COM. You will need the SDK docs (help files) to locate the functions you require, then you can declare them in your VBA/VB/VB.NET code.

     We have done quite a few VBA routine amendments for existing customers to integrate legacy applications into ProjectWise.

     HTH

     Ron

Children
No Data