I want to get a DGN file's brand (i.e. Its workspace and workset). I've made some progress...
if (DgnWorkSetInfo.ExistsOnDgnFile(dgnFile)) { using (DgnWorkSetInfo info = DgnWorkSetInfo.ExtractFromDgnFile(dgnFile)) { string s = $"Workset name '{info.Name}'"; } }
I'd also like to get the workspace name. Unfortunately, while the MicroStationAPI has IDgnWorkSetInfoPtr->GetWorkSpaceName(), the .NET equivalent doesn't seem to exist. Have I missed something?
IDgnWorkSetInfoPtr->GetWorkSpaceName()
SDK example ../Miscellaneous/CheckWorkSetPaths shows how to do this using C++.
../Miscellaneous/CheckWorkSetPaths
Jon Summers said:The MicroStationAPI has IDgnWorkSetInfoPtr->GetWorkSpaceName(), the .NET equivalent doesn't seem to exist. Have I missed something?
Would anyone from Bentley Systems like to comment? It looks like someone omitted a .NET wrapper around a MicroStationAPI method in the published API.
Regards, Jon Summers LA Solutions
Hi Jon Summers,
I will check with development for recommendations and see if we can (finally) publish the .NET WorkspaceManager APIs.
Thank you,Bob