[CONNECT Python] Interest in using Python as a MicroStation Development Language
Over the years someone occasionally raises the question of Python and the possibility of using it for MicroStation development.Python is a popular programming language. However, in its raw form it's...
View ArticleHow to Add Custom Property for Base Elements of MicroStation Using Bentley...
Hi All,Can we add a custom property to MicroStation elements using Bentley Class Editor tool? Anyone have experience with this, any sample example would be great help.Using Bentley Class Editor, I have...
View Article[MS 23.00.02.71 C#] how to get a DisplayableElement from a cell
Hi,I am trying to draw a preview of a cell found in a cell library using the `ElementPreview` class, however I am stuck on the step of getting the entire cell as an element to pass to the OnPaint...
View Article[ORD 2021 R2 C#] GetLevelDisplay() to determine if level is displayed
Hi,I'm trying to determine if a level is displayed in a reference attachment using GetLevelDisplay()C#publicViewInfoStatusGetLevelDisplay( outboolisOn, DgnModelRefmodel, LevelIdlevelID )The method...
View Article[C# MSCE 23.00] PropertyHander throwing exception when accessing value
I'm using the following code to try to retrieve a Property from an element. The "SelectByAccessString" returns true, but when I try to retrieve the value of the property and exception is thrown "Not...
View Article[Connect C#] CreateShapeElement1 not working for me
Hello!Here's the code relevant to my problem:using BIM = Bentley.Interop.MicroStationDGN;public static BIM.ShapeElement CreateMarkupShape(BIM.Range3d range, bool filled) { BIM.Application _app =...
View Article[C#] | Reports API | Microstation 2023 | Reports API
I'm writing plugins for Microstation 2023, and I need to read the structure and names of "reports" from the code.Does MicroStation provide any documentation or examples for this?Thanks
View Article[MSCE 17 C#] Dimension alignment methods
I placed a dimension using C# to MicroStation.And I refer to below link to create a dimension. Creating Elements in Add-inBut I couldn't update dimension alignment with DimStyleProp. even though I...
View Article[MicroStation 2023 CONNECT Version 23.00.02.71 - C++] unable to edit text...
I am trying to programmatically edit text element inside a cell.I am able to create a textBlock and replaced textBlock with new string and also able to create a new textElement using...
View Article[C# Microstation 2023] Updating text inside cells?
Has there been any updates in 2023 C# API on updating text elements inside the cells? or in general any updates to TextEdit/TextBlock/TextElement APIs?Thanks.
View Article[.net c#] [ORD 10.10] FindElementById Return null
Hello everyone,I've encountered an issue while working with a .NET C# in the context of ORD 10.11 (I`ve tested under ord 10.11-10.13 - not work.). When I try to use the FindElementById method to locate...
View ArticleIssue with 'Level' Property Not Being Honored in VBA Macro for MicroStation...
Hello all,I am encountering a problem in my VBA macro within MicroStation V8i (SELECTseries 2 - 08.11.07.446) that I'm hoping to find some help with.The goal of the macro is to scan specified levels...
View ArticleMigrating existing MicroStation SS3 native code MDL’s to MicroStation CONNECT...
Hi team, We are currently migrating existing MicroStation SS3 native code MDL’s to MicroStation CONNECT 2023 version using MDL API’s. During migration we observed few issues with some of the...
View Article[Mstn 23.2 VBA] How to create a new level filter
Hi,I am trying to create new level filters via VBA. Can anyone point me in the right direction.Example:Filter name = "My Name"Name = "A1* | A21*"I have been trying to use the Key-InsLevel Filter...
View ArticleExcel VBA - place note with leader
I'm developing a script which allows the user to input parameters to Excel which are drawn in the active Microstation file. One part of this is to place notes with leaders pointing to various elements....
View ArticleDevelopment batch process to create new DGN
I would like to have a program to create update DGN drawing by schedule job loading in Window Server. What can I do?
View ArticleC# program can't open the DGN on MicroStation
I am trying to open the DGN file by C# program, but it can't be displayed on MicroStation after the program run, please help. What wrong on my code?CodeOutput
View ArticleElementToSolidPrimitive cannot get solid
When I was using ElementToSolidPrimitive, I found that it can only retrieve basic entities. For smart entities, it returns a value of NULL. If ElementToSolidPrimitive can only retrieve basic entities,...
View ArticleVBA - Attach Item Type From DGNLIB
I want to attach an item type to an element. This works well as long as the item type library exists in the active design file. However in some cases the item type library is in a DGNLIB file. In this...
View Article[MicroStation CE C++] Problems setting RGB color as ByLevel color in a...
Hi I would like to set the ByLevel color on a new level in a WorkDgn file but I cant make it work correctly. Here is the code:DgnModelRefP modelRefOutput; WString filnavn =...
View Article