[V8i SS6 VBA] Run-time error '-2147220601 (80040387)' at...
Dear All,I am getting run-time error while running the attached code.Following are the version details. AECOsim SS6 Version 08.11.09.829 Full code is attached. it will be a great help if someone can...
View Article[VBA] ProjectPointOnPerpendicular1 BiasPoint
How the BiasPoint is used in ProjectPointOnPerpendicular1 method?According to VBA help the BiasPoint(A Point3d expression. The point closest to the end of the projection) is used to determine how far...
View Article[CONNECT VBA] Construct perpendicular to point
How to construct line from one curve to other which is perpendicular to starting point? I have curve1 and curve2 and known point on curve1 from which need to draw perpendicular line to this point from...
View Article[CONNECT C++] App. not unloading - prevents build
I've recently come across a problem that I've not encountered previously. During development, it's commonplace to build an app., load into MicroStation, perform some tests, unload the app. and make...
View Article[DGN Platform public API, C++] "DgnCore2.dll" returns "Access violation" in...
Hi all,Hope this is right place to ask my question.I'm working with DGN Platform public API to develop tiny DLL, which can be used to get basic meta info about dgn file: version (V7,V8) and references...
View Article[V8i VBA] Creating Annotation Text in specific units regardless of design...
Firstly, I am able to create text elements by providing text width and height values (via text boxes on a form) using the active units of a design file (values are in Metres) however I have been asked...
View ArticleVBA Microstation Preference Directory
My preferences are stored at C:\Users\[username]\AppData\Local\Bentley\MicroStation\8.11\o_Dof88niaENmS1PChQ4MgIs there any way to determine this directory programmatically?
View ArticleDetermine _ustn variable from outside of uStation without starting/opening...
I would like to build an external .exe program to read some _ustn variables. Is this possible? Do I have to open an instance of uStation to accomplish it? (Ideally I woud NOT need to open an...
View Article[Connect update 4] Issue with TextStyle
Hi,My system is windows 7, VS 2015I find Text Style Height and Width behavior very strange and here is example.I have created TextNode with multiline text. With each new line, font height and width is...
View Article[MVBA] Best way to retrieve Point3d Object from Tentative Snap like "Rotate...
Disclaimer: First Foray into using MVBA with the native Microstation Objects. Well versed in VB.NET though.I am trying to create a simple little MVBA application to return the 2D slope between 2...
View Article[CONNECT C++] Find Associated Element
I've created a text element and associated it with a target element using TextHandlerBase::SetupOffsetAssociation. That works fine.Now, in a separate operation, I want to find an associated text...
View Article[V8i SS2 MDL/C++] Exiting an MDL Program
Hi,I have an old MDL program that I am upgrading to C++. It is a small utility program that loads, runs and is then unloaded using mdlSystem_exit (0,1). In C++ that function call causes Microstation to...
View Article[CONNECT C++] DgnElementSetTool: Query Elements in Reference Attachments
My query tool inherits from DgnElementSetTool. It works fine for elements in the active model, but what should I do to enable it to locate elements in a reference?Currently the tool shows a pop-up...
View Article[Connect C++] Setting Active Z for NamedView
How do you set active Z for NamedView? There is a function GetActiveZ in ViewInfo, but no SetActiveZ. And mdlViewInfo_setActiveZ takes ViewInfoP as argument and I don't see how I cat get that from...
View Article[CE 4 C# NET API] How to terminate DgnElementSetTool class?
Hi,I am looking for NET API function that vill do same job as InterOp CommandState.StartDefaultCommand()I want to terminate DgnElementSetTool ( force it to performe clean up) and I have tryied...
View Article[Connect C++] Attach raster in a specified Z-coordinate
I've created a function that I use to attach a rasterfile and put it in a specified Z.coordinate:void lifalib_attachRasterFile(WCharCP wcRasterFileNameP, WCharCP wcLogicalNameP, WCharCP wcDescriptionP,...
View Article[CONNECT C++] EditElementHandle::AppendElementLinkage() - Where is...
Trying to use EditElementHandle::AppendElementLinkage() and the doc's say to call LinkageUtil::SetWords() first on the new linkage header. I don't see that method declared anywhere. Anyway, wouldn't...
View Article[V8i VBA] Removing Sub-Element from Cell
I have a number of DWG files which have been converted to DGN. I noticed the annotation comprising of an arrow and text is a normal cell element however it all contains 2No. shapes 1 is a rectangular...
View ArticleBentley Systems Position on "passcodes"
The following position statement supersedes all previous statements or positions on this topic:Since the introduction of PowerDraft in the 1990s, MicroStation-based products have included programming...
View Articleremoving proxyelements from Microstation files
Can I make sure the value of the parameter "MS_DWGSAVEAPPLICATIONDATA = 0 is kept for the user each time he enters Microstation. I wasn't able to achieve that.Is there a way to control the parameter...
View Article