[MSCE U17 C#] OpenXml Compatibility
It took me a few hours to figure this one out so in case anyone else is in the same boat, DocumentFormat.OpenXml Version 2.16.0 works with MSCE U17. Version 2.17.1 or 2.18.0 will crash with a...
View ArticleMicrostation VBA -Begineer
Dear Team,Good morning!just starting Microstation . Could you please guide me to develop VBA Script for small automation ?How to start ?Please guide me.Thanks!
View Articlecreate relative associations to elements. with vba
How to I get this selection chosen by vba or key-in command"Enable to create relative associations to elements"Recording the macro makes changes to the association lock onlyI need "relative...
View Article[MSCE U17 VBA] Crash without running code
When I was coding with the Microstation VBA Text Editor, it suddenly crashed when typing the call of Function (in the same mvba). It crashed mainly when I incorrectly typed "," or ".". However, it...
View Articlesave dgn file using vba - V8
Hi teamI am replacing the text using vba. I am trying to save the file with another name using VBA.is it possible to save using vba? how? Please adviceThanks!
View ArticleError No -2147221504 is locked caused by vba project - V8
HI Team,I am replacing the text using Excel Macro. If i load the excel macro (mvba) on V8, its working fine.if i execute it directly from Excel File(VBA) (note i have MicroStationDGN.OpenDesignFile...
View Article[MSCE C#] how to set Global Origin
hiI am trying to place an element in C# Addin .Net, but since the default global origin of the seed file is not (0,0,0). I am unable to place the element at the correct coordinates. I tried to change...
View Article[V8i C++] Turning on snapping for transients
Hi,I would like to display snappable temporary element in OnComplexDynamics method of my custom tool. So I tried to use transient element and DRAW_MODE_TempDraw:In my tool I defined member TransDescrP...
View Article[V8i C++] Adding auxiliary elements in custom tool
Hi,I would like to develop a tool for element modification, which shows temporary auxiliary geometry objects during dynamics. These objects needs to be snappable. How can I draw them?All the bestWojciech
View Article[CONNECT Update 17 C++] Excel Reader
I notice that the SDK/library folder includes a number of files named ExcelReaderWrapper.xxx. The MicroStationAPI documentation does not mention Excel.How do we use those Excel wrapper DLLs? Any...
View Article[CONNECT Update 17 C++] Visual Studio 2019 Project Settings
I have been using Visual Studio 2019 to build C++ projects for CONNECT for a couple of years. However, after a recent Microsoft update I have a problem. Here are my current Viz Studio project...
View ArticleSelecting elements being created and rotating them
I'm working on a VBA file that places a few elements in specific positions relative to the starting point, which is determined by the user clicking. Most of the time, the user will be placing the...
View ArticleCONNECT U17 Code to export Project Explorer information
10.17.00.209How do you obtain the code to export the details from Project Explorer to an Excel or text file?I tried recording a macro but it gives very basic information. When I go into the Project...
View Article[Connect Update 16 C# COM] Element.Rewrite crashes microstation if dgnfile...
I am going a bit insane with this piece of code, its fairly basic and if the dgnfile is open then the text updating works fine, but if I initiate app.OpenDesignFile and then it will crash at...
View Article【MSCE C#】create bspline surface from Face
Hi, is there some methods to create bspline surface from Face (For example the smart surface of BrepCellHeaderElement) in C# Open buildings designer update 7Like the function "convert to surface"...
View Article[MSCE VBA] Get the Element ID after AddElement
In general, we use this method to add elements into model:ActiveModelReference.AddElement oElementHowever, we may need to use ReplaceElement method to replace part of Elements sometimes. How do we note...
View Article[CONNECT Update 17 VBA] place text element above/below
Hello,How is possible to place text along (above/below) programmatically ? using SendKeyin not good solution for me, because is opened key-in windows. Maybe exist another variant ?...
View Article[MSCE U17 VBA] Is it possible to populate the Details dialog using VBA?
Would it be possible to populate the Explorer Details dialog using VBA?I would like to scan the file (or select) for elements and just display the attached Item Type information in the details...
View ArticleHow attach MapInfo TAB-file as a reference with VBA
I have tried to attach tab-file as a reference with VBA, but with code below MS only informs that the file is not in a recognized file format. Set Att =...
View ArticleIs there a replacement for mdlElmdscr_differenceShapes in new CONNECT MDL API ?
Hello guys,as the title says, I'm trying to find out if there is a new way of calculating difference shapes of elements, with setting the tolerance value.In the SDK examples i found out about Boolean...
View Article