How to migrate tools created in MDL from V8i workspace to Microstation...
We have converted the workspace from V8i to CONNECT edition 16.In V8i workspace, we had a DGNLIB file and .ma tools, that was developed using MDL C, C++. This DGNLIB was having one menu and menu items...
View Article[CONNECT C++] What are the mdlTable_* and mdlTableEntry_* replacements?
Hello,In V8i we used to use the mdlTable_* and mdlTableEntry_* functions, all from the table.fdf. In the CONNECT Edition (Update 14) these general functions are missing. In what way can we achieve the...
View ArticleEdit Model Properties
Hello,I'm looking by either key in or VBA to edit model properties. Set the Sheet Size to A3 and Design Scale to 1. Its to fix exported files from Revit to DGN.Thanks in advanceColin
View ArticleHow to access attributes of element in C# on Microstation CE 16?
We have a code in VBA, that gets the attribute of the element.Public Function GetWeldDiameter(Number As Integer) As String Dim oElement As Element Dim ph As PropertyHandler Dim accstr() As String Dim...
View Articlehow to refer a Text element and update the value of Text element on...
Hi,I am facing one challenge in my task, I am actually upgrading our Tools from MDL C to C#.My task is I wanted to change the Value of Text Elements. I have achieved it, with the help of one of article...
View ArticleHow to get the graphical elements or sub elements of the complex element in...
The geometry of weld can be identified from the array below:/* Defines a weld element composition with Line = 3, Arc = 16, 3D Surface Header = 18, PointString = 22, Cell Header = 2 */int[] type = { 3,...
View ArticleHow to extract the attribute from the element using C# on OPM Update 9?
The code below extracts the attribute information from the first element contained in the element descriptor. I want a similar interpretation in C#, on OPM Update 9.int nwords; short words[1000];...
View ArticleAdd background for ALL Geopak labels from macro that only allows single...
I have code made by Chuck Rheault that allows you to select individual Geopak labels to toggle background.Would it be possible to convert this to add backgrounds to ALL the Geopak labels in a model so...
View Article[MSCE 10.15 C#] Intersection of Cone and Rectangle
I have a rectangle (ShapeElement) and a cylinder (ConeElement) that I'm trying to find out if they intersect. (Don't actually need the intersection point(s), just if they intersect).Using Interop...
View Article[CONNECT Update 16 .NET] BGNet classes
Another sleepless night during lockdown, and as I browsed the .NET BentleyGeometryNet documentation I came across two classes...BGNetFactoryBGNetToCommonGeometryAs usual, the .NET documentation is...
View ArticleWhere I can find method for getting the distance between two 3d vectors in C#...
Computes the distance between two points.mdlVec_distance(DPoint3d A1, DPoint3d A2)I am working to get its equivalence in C#, However I am working with Bentley.GeometryNET.DVector3d to find the function...
View Article[V8i VBA] IntersectRay3d Method - Reasons for failure?
I saw the other recent topic (Cone intersection with a rectangle) and it reminded me I was going to test out some methods, one of those being IntersectRay3d. Using that thread's problem as a test case,...
View ArticleHow to avoid System.AccessViolationException
I received this while accessing an element which is a Cell Header Element but does not have any Cell Name, and whose IsAnonymous property is true.System.AccessViolationException: 'Attempted to read or...
View Article[CONNECT Update 16 C#] dock DockableToolbar when opening
Hi everyone ,I have this dockableToolBar :using Bentley.MstnPlatformNET.WPF; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using...
View Article'ExtScanList': undeclared identifier (Microstation Connect Edition 10.16.0.80)
In continuing my attempt to port my v8i mdl application to connect, I am having trouble identifying the "ScanList" and "ExtScanList" structures.I have not been able to figure out how the examples using...
View ArticleMicrosStation V8i : User defined variable in project pcf of workspace
There are some variables that are described in project configuration file (.pcf) of workspace like XXX_GASKETS_DB = $(_USTN_PROJECTDATASET)Catalog Databases/XXXXX.mdbXXX_ZZZ_FILES =...
View ArticleMicroStation CE 16, C# : Facing System.AccessViolationException while...
While iterating through the elements from the collection, we are facing the below issue. This not only gives the exception but also closes the debug session. I an not able to move ahead as I am unable...
View ArticlePlatform : Microstation CE 16 (C#), Component : DgnECManager
The below statement causes the issue "object reference not set to an instance of an object" DgnECManager manager = DgnECManager.Manager;Is there any specific thing that is required, along with this?I...
View ArticlePlatform : Microstation CE 16 (C#) - Some properties are not accessible from...
I see the properties for the cell element like gasket, but unable to retrieve some through the code mentioned below. This code gives me properties of category like "Raw Data", "Extended" etc., but does...
View Article[CONNECT] Customizing the Ribbon UI
The MicroStationAPI help contains an extensive discussion of the MicroStation CONNECT Ribbon interface: search for Ribbon Bar Interface. There are plenty of examples in XML format.Prompted by this...
View Article