Microstation CE Update 16 C# : Unable to create text element with fraction text
We are working to get the text block with fractional value, and create text element with it. The code below is the implementation we have performed, but while creating text element with text block as...
View ArticleMicroStation CONNECT SDK 10.16.02.22
I note that the MicroStation CONNECT SDK 10.16.02.22 was published on 21-Dec-21. Here are the settings I used on Bentley's Software Downloads page to see that version...I'm pleased to report that the...
View Article[VBA CE] Progress bar
How to update this VBA code for CONNECT?https://communities.bentley.com/products/programming/microstation_programming/f/archived-microstation-v8i-vba-forum/70085/using-built-in-progress-bar/184347#184347
View Article[CE VBA] Text placement by origin not working as expected
Microstation Connect V10.16.02.34I'm familiar with Excel VBA and taking a stab at writing VBA for the first time in Microstation to populate a chart/table. (I know CE has a 'Place Table' tool but it...
View ArticleMicrostation CE Update 16 C# : How to move more than one element with mouse...
We want to move the list of elements together, while using Dynamics with DgnPrimitiveTool, so we kept some code on OnDynamicFrame, but the movement is damn slow and shows some overlapped elements which...
View Article[CE VBA] Placing text with VBA - fractions not stacking
Microstation Connect V10.16.02.34I'm trying to place an array of text strings from a text file into a table with VBA and not having any luck getting fractions to stack. If I were to enter or edit text...
View Article[Connect Update 15 c#] Scan for Cellheaders
Good morning,I am running into some strange behaviour that I can't work out.I am writing an app in C# for Microstation Connect update 15 that scans a file for all placed cells. It's a test for some...
View Article[VBA CE] Scanning file status
With a invaluable help and examples Jan and Jon I have made a VBA macro to scan file for duplicates. What would be best approach to show scan progress as it is removing elements in process so the scan...
View ArticleMicrostation CE Update 16 C# : How to get the vertices of the line element?
We are trying to get the vertices of the line element or line string element, the below example has part of line element, but the spoints list is always empty. We should get the start and end point for...
View ArticleNo model reference is active
void Test(string sPath) { BCOM.Application app = new BCOM.ApplicationClass(); BCOM.DesignFile dgnfile = app.OpenDesignFileForProgram(sPath); int modelint = dgnfile.MdlModelRefP(); BCOM.ModelReference...
View Article[CONNECT Update 16 ElementAgenda] Why can't .NET ElementAgenda Draw its...
Jan made this comment in another thread: It is one of the disadvantages of NET API, because in C++, RedrawElements accept also ElementAgenda.Why doesn't the .NET ElementAgenda implement the Draw()...
View Articleopen .txt file from with vba
I found what I wanted by Jon Summers, but the link will not take you anywhere it errors out. It appeared just what I was looking forIf you do a keyin the %Manual KeyIns work like: %"C:\Text_C\Text...
View ArticleC# Remove Element using OpenDesignFile
I am using MicroStation V8iThis is a windows executablevoid Remove_Element(string sPath, int iLevel) { MicroStationDGN.Application app = new MicroStationDGN.Application(); DesignFile dgnfile =...
View ArticleDataEntryRegion.Length not working in Connect Update 16
Hello, I searched but couldn't find anything related, so here goes. We're on Update 16 of Connect and a script that was working fine in v8i doesn't seem to produce the same results in Connect. So i...
View ArticleShow All Level
I want to show all element level, I found the VBA code but I don't know where to get 'viewIndex'Sub ToggleLevelDisplay(strLevelName As String, viewIndex As Integer) Dim oLevel As Level Dim oView As...
View ArticleExcel VBA to Modify Microstation DGN
Hello,I am pretty new to using Excel VBA to modify microstation file. My goal is using the cell values in excel to update tag sets and turn on/off layers, and purge certain empty tags (in different tag...
View ArticleUpdate DGN tag to the File Name with VBA
Hello,How can I update a specific tag that is associated with a specific cell to match the file name with VBA.Right now, I have wrote codes to create drawings with different templates based on an Excel...
View Article[OBD Connect Edition Update 6 C#] DgnECManagedCrudExample
Hi,I am currently trying to adapt the 'DgnECManagedCrudExample'...
View ArticleMicrostation CE Update 16 C# : How to update the Line style name of the line...
The project requires update of line style name for line elements, so we are looking out for the change of line style for line element with line style name.How to change the line style using line style...
View Article[OBD Connect Edition Update 6 C#] DgnECManagedCrudExample
Hi,I am currently trying to adapt the 'DgnECManagedCrudExample'...
View Article