Browse By Tags

  • [CONNECT C#] After ElementPropertiesSetter the Element is locked

    After using ElementPropertiesSetter, the respective element is locked and cannot be unlocked in the MicroStation afterwards. Did I forget something? public bool SetElementLevel(BDE.Element element, string levelName) { try { BD.LevelId levelId…
  • [CONNECT C#] Problem with Console Mode and BM.Session.Instance.GetActiveFileName()

    Hi, have another question about C #. My AddIn should run directly in the MicroStation (MicroStation mode) and outside in the CMD shell (console mode) So far everything fits in MicroStation mode, only not in console mode. if (call.ModeMicroStation…
  • [CONNECT U13 C#] A List of all Levels

    Hi, first of all, I'm a C# beginner. How do you get all levels of a DGN with or without attached DGNLIB? With the following code I get the correct number of all levels with or without attached DGNLIB. using BD = Bentley.DgnPlatformNET; public uint…
  • CONNECT C# Loading attachment is not permanent

    Hi, I try to load a reference to my dgn file programmatically. That works, but as soon as I close the window and load the same dgn again, the reference is gone. OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "dgn Dateien…
  • [CONNECT U12 C#] use Text favorites to automate Text placement

    Good afternoon, I am currently using Microstation Connect update 12. I am working on some automation projects that involve the use of Items. In standard Microstation we use Text Favorites to connect Item values to text elements. Problem is that I…
  • Microstation v8 Addin

    Is any possible to create Addin for Microstation v8 2004 edition for my .net c# microstation application?
  • How to get properties by category

    hi~ I want to get properties by category. Just like the title in the picture below to classify and export. But only the customized ones that I export can not be exported by clicking here. The circles in the picture are uniformly assigned to "BREP cells…
  • 如何获取构建所有属性信息

    老师们好,我想得到图片里面所有的属性信息。我看了很多帖子都没有实现,只是获得了一点点“通用”属性,比如name color weight之类的。但是其他的属性都没有获取到。 我通过element去便利然后获取IDgnECInstance 再用IECProperty去尝试都无法成功。能告诉我的错误在哪里吗?真的非常感谢。 下面是我的部分代码: DgnModel dgnModel = Session.Instance.GetActiveDgnModel(); IEnumerator<Element…
  • Why can I not see the SDK download?

    Is it something that you have to pay extra for? I am on connect update 13
  • Microstation v8i SS3 Close Alert Dialogue Box

    HI, Anybody please help me with a piece of code to close the Alert Box using C# (Apply Yes Button)? Thanks, Vinoth
  • Call aaapi_initialize return BadImageFormatException in c# using wrapper

    Using C# (in Visual Studio 2017), I am writing a class with a function LoginServer() that calls the ProjectWise API to login, and ready to make further action upon users' request. This dll will be deployed to MicroStation as a toolbar plugin. I'm…
  • [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…
  • MIcrostation V8i SS3 get Tag value c#

    Hi, I'm trying to get the tag value using c#. opened the design file using OpenDesignFileForProgram. BCOM.TagElement tele1 = _Ele.AsTagElement(); //Working fine Console.WriteLine(tele1.TagSetName); //working fine Console.WriteLine( tele1.TagDefinitionName…
  • [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 C#] ElementChangedEvent and Item Types

    Versions: MicroStation Update 10 (10.10.00.23 and SDK 10.10.00.32). I am trying to update an Item Type property on an element that has been moved. If I try to update the item type using a change event the code below will fail. If however, I put this…
  • [CONNECT C#] Model Flags/Properties - Annotation Cell

    Version: MicroStation Update 10 (10.10.00.23 and SDK 10.10.00.32). I don't know why, but the forum admin decided my previous post on this subject was better suited for the Civil forum - and moved it. I suppose it is my fault since I included the product…
  • [CONNECT C#/C++/VBA] OpenRoads - Model Flags/Properties - Annotation Cell

    Versions: OpenRoads Designer and SDK Update 4: 10.04.00.48. And MicroStation Update 10 (10.10.00.32 and SDK 10.10.00.23). I am trying to create a model (a cell) that can be placed as annotation cell. The model gets created as expected, but fails to…
  • C# microstation V8i

    I'm trying to open a design file for read thru program from Visual C# as below: using BCOM = Bentley.Interop.MicroStationDGN; class Program { public static BCOM.Application MSApp = null; [STAThread] public static void Main() { MSApp = new BCOM…
  • [CONNECT NET] Change Text properties

    Hi everybody, someone knows how I can modify the text properties in NET CONNECT API: justification, width, Height, ... I've been trying with SetRunPropertiesForAdd but I can't do it. many thanks,
  • C# Attachment GlobalLinestyle property Enumerator values not in-sync with the UI property dropdown?

    C# Windows 8.1 AECOSim Connect Update 1 Below is a method we wrote to set attachment global linestyle properties. public static void setAllAttachmentsToRefByReference() { Attachments myAtts; myAtts = app.ActiveModelReference.Attachments; foreach…
  • From V8i to Connect with KISolid functions

    Hello, we are in the process of migrating from v8i to Connect SDK. We have many dlls and we need a little help to find some references that are probably relocated, or new ways to do the things we used to do through the old SDK. Lately we had been…
  • Create BSpline Surface in C#

    Hi, I have 2 cross section profiles of a train (front and back of the vehicle) in BSpline curve format and would like to join them together and create a BSpline Surface element in my C# microstation addin. I have tried to do this using the BSpline Surface…
  • MS CE下如何实现类似ABD中梁板柱的动态建模

    老师能不能提供一个完整的思路,分别在打开或者关闭正交的情况下,动态的绘制圆柱,C++/C#均可。
  • [Microstation v8i, C#/C++] How to get the ElementRef and DgnModelRef from a C# API element?

    I am trying to get the ElementRef and DgnModelRef from C# API of elements I have selected so I can pass through to some Native MDL code that needs to use them? From searching through these community forums and browsing the C# functions/properties I…
  • [c# v8i] Addin and VBA. RegAsm error.

    Hi! I'm trying to do my dll (c# addin) available for VBA. I found two articles how to do it: http://communities.bentley.com/products/programming/microstation_programming/f/19569/t/64713 http://www.la-solutions.co.uk/content/DotNet/DotNet-ComServerGuide…