I'm unfamiliar with the .NET API for ProjectWise (PW). Assuming that a user has just opened a DGN file using PW, how do I obtain PW's project ID and file ID using .NET?
If that's not possible using .NET can I use C++?
Hi Jon Summers,
In addition to YongAn's helpful and correct response, please take a few moments to review: Customizing and Programming ProjectWise; for valuable insights and information. Although ProjectWise does not provide published and supported VBA/COM or .NET APIs (enhancement requested), at the bottom of the post you will find a couple articles and code that may be helpful in working with or extending these unsupported APIs with ProjectWise.
HTH,Bob
Robert Hook said:In addition to YongAn's helpful and correct response
Here's a comment from a customer: In the Revit plugin we have found that the IDs we required (BIM360 project ID and Revit model ID) were available as properties on the model document after it had been loaded into Revit. We were hoping that MicroStation exposed similar information about a model loaded into the application if the source was ProjectWise.
Regards, Jon Summers LA Solutions
Can you request or confirm if "project ID and model ID" is information in the following context(s)?
It will be important to know the source of desired "project ID and model ID" metadata and Visibility (if avail in PW) since it will determine which API will be required/necessary to access the metadata reliably.
Robert Hook said:Can you request or confirm if "project ID and model ID" is information in the following context(s)?
I cited customer's question not as a requirement but as a supplemental example to my original question. Customer is hoping that, since he can get the info he wants from a rival product (BIM360 with Revit client), he can get the same or similar from a Bentley Systems product set. That is, customer has issued a challenge!
I'm not asking if ProjectWise (PW) can somehow show BIM360 information. The question remains: How can a MicroStation client obtain information about its PW project and file identities? Yongan.Fu kindly provided a suggestion that requires a PW C++ client app, which will need wrapping for a .NET client.
See also my related post about the MicroStationAPI DgnDocumentMoniker.