Browse By Tags

  • [MSCE U17 SDK C#] sample code: what does Session.ActivateContextualTabSet function do?

    Hi Everybody, I am trying to understand the sample code comes with the Microstation CONNECT Edition SDK (Update 17). The sample project I am looking at is at <Mocristation SDK Root Folder>\examples\WPF\WPFDemo\ In the WPFDemoKeyins.cs file of the…
  • [Solved] Question RE: ProStructures CE SDK Example 'CorbelDistribution'

    HI all, First of all apologies if this is posted to the wrong place. I hesitated if this should be posted here or the "ProStructures" forum and ended up deciding here is probably more relevant. I was trying to build the C# example project using…
  • get referenced files using .net

    hi, i'm wondering if it is possible to get a list of the referenced files in a .dgn using the sdk? similar to the result from `microstation.exe -waref [path]` thanks versions: MicroStation Connect Edition Update 16 and MicroStation Connect Edition SD…
  • DanWilliamsAtBentleyDotCom on GitHub

    The samples that were located at https://github.com/DanWilliamsAtBentleyDotCom have been copied to Product Communities > Developers and Programming > ProjectWise Programming > ProjectWise Programming - Media Gallery located at https://communities…
  • [CONNECT C#] Get project root ID

    I'm writing C# code for MicroStation CONNECT Update 14, relying heavily on Most-of-Daves-classes and the PW SDK. I need to find GUIDs for a document, its project and the project root. I can get the first and second but am stumped when it comes to finding…
  • Creating new work area attributes using PW SDK

    I'm having some difficulty creating new work area attributes using the SDK (aaOApi_CreateAndInitializeAttribute), specifically assigning the control type i.e. none, pick list or select: using the following function the attribute is created but it…
  • Why can I not see the SDK download?

    Is it something that you have to pay extra for? I am on connect update 13
  • Credential Expiration

    Hey all, I'm hoping someone can point me in the right direction. I have a window service that uses the projectwise APi to login, connect to a datasource, preform various operations to get data from projectwise, including copying files out of the system…
  • [Connect | V8] [C# | C++ SDK] Finding Xattributes quickly and selectively, without the detour via "search element"?

    To work with Xattributes, you need an ElemendHandle whether you work in managed or native code. But what will be best practice to find some elements in such a case: DGN with some several thousand elements Some 3% elements with Xattributes …
  • [CONNECT C#] switch activedgnfile

    Been searching the help docs and can't seem to find how to switch the active dgn file to a new file using the .net apis. I see the Bentley.MstnPlatformNET.Session.Instance.GetActiveDgnFile. but I have searched through all the session members and don…
  • [CONNECT C#] add dgn model reference using .NET and change some reference settings

    trying to figure out how to add a dgn model reference to a file and set a attachment settings. just struggling through the SDK. I found CreateDgnAttachment method but cant find how to set reference settings. here is what I have so far but after I…
  • [CONNECT C#] how to change a dgn file properties (title, comments)

    Trying to figure out how to update a dgnfile's title and comments. I'm talking about the extended file properties. See image below. you get to this by going to the backstage and selecting properties. this was really easy to do in VBA. it was simply…
  • [CONNECT C#] Get list of annotation scales in file

    I'm making a c# wpf addon for microstation. I want to get the list of available Annotation Scales. I found how to get the current scale. but cant seem to find how to get the list of scales. heres the code for getting the currently set scale. using…
  • [CONNECT .NET] Describe Element SDK Example is mis-named

    I notice that the DescribeElementExample , delivered with the CONNECT SDK, is mis-named. It has little to do with describing an element. Rather, it is an excellent demonstration of Item Types and how to attach them to an element using C#.
  • C# aaApi_Login3 with federated IMS accounts. how to register callback

    I'm having trouble getting the aaApi_Login3 api to work. I'm pretty sure its with the callback to get the IMS user id because I'm not really familiar with that. here is my api calls and delegate for the callback (note my API wrappers and delegate…
  • C# aaApi_GetUserStringSetting not returning working directory correctly

    I'm updating my c# code and saw that the aaApi_GetWorkingDirectory function call is Deprecated and it said to use aaApi_GetUserStringSetting() instead. so I switched my code to use the aaApi_GetUserString Setting to get the working directory but it…
  • C# aaApi_MonikersToStrings not working PW address to folder

    I have a stand alone C# application that performs some things at a folder location. I am updating it to now work for a projectwise folder location. the user hits a search button in the application window which brings up a folder select dialog. after…
  • how to get all documents within a Project folder and its sub-folders?

    looking for some direction on which API calls I should be using to achieve this. I have an C# app that I'm updating to work with projectwise. I need to loop through all the documents within a folder and its sub-folders. so for I have used.... …
  • ProStructures API or SDK

    Does ProStructures or ProSteel provide an API ? Is the API included with the product or provided with a separate SDK ? What languages are supported? VBA C# C++ Glossary API: Application Programming Interface SDK: Software Developer…
  • C# or C++ SDK for Geopak

    Does there exist a .net assembly for Geopak, or any Geopak SDK that's not VBA? It could be C++, C++/CLI, C#, or anything other than VBA. Thank you,
  • c# create document

    oops ... please delete this post .. sorry : (
  • Create project tree, using c# for winForms project

    I'm trying to create a PW navigator in c# using the SDK c++ sample "Navigator". I have created my own c# wrapper but struggling with the implementation. Below are the wrapped functions [DllImport("dmawin.dll", CharSet = CharSet.Unicode)] public static…
  • ProjectWise SDK and C# Wrapper Classes - Heap Corruption

    Hi everyone, I've hit a bit of a brick wall and I am running out of clues on how else to debug this problem. In a nutshell, I've got C# wrapper classes written around the ProjectWise API and in turn, this library is consumed and used by an MVC3 web…
  • [V8i c#] Is there a API to merge two files

    Is there a API to merge two files Problem : Need API to merge two DGN files or alternative method without using keyins MicrostationDGNApp.CadInputQueue.SendCommand("DIALOG REFERENCE TOGGLE "); MicrostationDGNApp.CadInputQueue.SendCommand(…
  • [V8i c#] Issue with the text font change using API

    Problem : 1. If we change the font using api 'currentElement.AsTextElement().TextStyle.Font' , Redraw & Rewrite the element. There is a displacement in the text location. if we use the key-ins, or open manually and change the font. There is no…