I am creating a Python module, which encapsulates ProjectWise features.
The module is written in C++ and wrapped with swig.
I can import the module and launch the ProjectWise login dialog. But the dialog does not list any datasource, and even if I enter the full path (servername:datasourcename), the login fails and gives me the following error:
- Last Error [10093] Cannot login to the datasource
What do I do wrong in my problem ? Is it possible, if at all, to create a ProjectWise module for Python ?
Answer Verified By: Jiayi LI
@Jiayi LI
Hi,
I am also interest to start accessing files through Python. Is there any introduction to this?
Or can you provide anymore details?
Kind regards
I am also interested in this initiative, can you share more details? this Forum is mainly discussing C++
Few months ago I attempted a ProjectWise solution in python and with a brief direction in this forum I was lost trying to use the requests library.
In any case I solved my problem at that time using Selenium library and the Projectwise Web Server. It worked nicely
Regards
My module is basically a set of C++ higher level functions, wrapped for python using swig.
The header file sent to swig looks like this :
Then swig takes care of the rest.
However since last year I mostly focus on Bentley Web Services Gateway, which is way more efficient and just as powerful as C++ SDK in my opinion. This module is no longer developped.
Best regards
Jiayi
Do you mean accessing files in a pw server through Python ?
You could either create a python module using the c/c++ sdk, or directly call Bentley Web Services Gateway in Python. The later is what I use today