Hello everyone,
This discussion is not new but still, I am not getting things in place even after looking at several threads here. I so thought to post a new one.
I'm facing some challenges in achieving a specific task using Microstation CE and ProjectWise API, and I'm hoping to gather some insights from this forum.
The goal I'm working towards involves two main steps:
Creating a New DGN File on PW: I'd like to generate a new DGN file on ProjectWise (PW) by utilizing a seeds file already present on PW.
Linking DGN Files: Subsequently, I aim to link a DGN file residing in the same PW location in the newly created DGN file (from Step 1).
Here are my questions:
Is it feasible to accomplish these tasks using the MS CE and PW API, preferably in C# or C++?
If the answer is affirmative, could anyone provide a sample code or guidance on how to initiate this development process?
I genuinely appreciate any assistance or pointers that you could offer on this matter. Thank you in advance for your time and expertise.
Once you get the project set up it is pretty straightforward to copy a document with projectWise SDK.
I have created a plugin in C# that does your first step. To use C#, I use Dave's classes (pinned in this forum I believe) as wrappers for all the functions and template for new wrappers if they are not defined already.
As a general tutorial in ProjectWise SDK development I can suggest the guide from the chinese wiki translated with Google translate: https://communities-bentley-com.translate.goog/communities/other_communities/chinafirst/w/chinawiki/17720/projectwise?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp
Examples (also for C#) can be found here: ProjectWise Code Snips and Samples
Documentation, I think, is only available in the PWPublicSDK.chm located in C:\Program Files\Bentley\ProjectWise\SDK\htmlhelp
I have attempted to use MicroStation SDK in combination with PW SDK, but Iran into the problem that Microstation CE is 64 bit and apparently cannot be executed by the PW runtime which is still 32 bit.