I've posted some articles about using matrices and transforms with MicroStation VBA to rotate or move (translate) a DGN element.
The articles explain the purpose and use of Matrix3d and Transform3d, and how to apply them to an element.
In response to a question on the Programming Forum I developed a VBA macro to create a numeric fraction. It can, like MicroStation, create any fraction, using any font: it is not restricted to the glyphs available in MicroStation's RSC font libraries. Here's 3/16 rendered using the Tahoma font...
The code works by creating a cell or text node and adjusting the origin and size of each text element within that…
I've written an example C++ app that performs CRUD operations on DgnLinks. The example includes source code.
EditElementRewriter is a trivial C++ class that helps encourage use of the correct idiom when modifying a DGN element.
It's modest in size and stored in a *.hpp file. This article discusses EditElementRewriter in more detail.
Join MOMENTUM, the iTwin Platform Developer Showcase
Join this event, to see the iTwin software development platform in action on January 26, 2022
Attend MOMENTUM for inspiring presentations from iTwin platform developers including EarthCam, Digital Energy, Agile Handover, XMPRO, and others. The iTwin platform is an open software development solution that makes it easy to innovate and quickly bring new digital twin…
MicroStation CONNECT Edition SDK Update 16.1 (v10.16.01.30) has been released.An SDK Announcement will be posted soon. Get Started by Clicking the Link Above or using the Steps Below to Download the latest SDK today.
Quick status update on the MSCE U16.1 SDK.With the announcement of the MicroStation CONNECT Edition Update 16.1 commercial release being available, please feel free to use the MicroStation CONNECT Edition Update 16 SDK release while we busily wrap up a few remaining/updated MicroStation CONNECT Edition Update 16.1 SDK release processes in hopes to publish the SDK the week of 11/8/2021.
Quick status update on the MSCE U16.1 SDK.With the announcement of the MicroStation CONNECT Edition Update 16.1 commercial release being available, please feel free to use the MicroStation CONNECT Edition Update 16 SDK release while we busily wrap up a few remaining MicroStation CONNECT Edition Update 16.1 SDK features and testing.
Quick status update on the MSCE U16 SDK.
With the announcement of the MicroStation CONNECT Edition Update 16 commercial release being available, please feel free to download and install the companion MicroStation CONNECT Edition Update 16 SDK.Please check back for pending: Announcements, SDK Releases and SDK ChangeLogs release details.
In Update 16, we have introduced PickList Source and Settings for extracting PickList values from different sources. You can access this from: ItemType Manager -> New Property -> PickList Options1. In the PickList Source drop-down, select from: Dgn Files (*.dgn, *.dgnlib Excel (*.xlsx)2. Select SettingsBased on your selection the respective UI will display for Dgn Files or Excel. Refer images below: By choosing…
We have introduced groups for selecting items in the Reports->Included Items tab->ItemTypes property. When you click on the "Select an Item Type.." drop-down of "Item Types" dialog, a pop-up appears with groups of Items like "Item Types", "Dgn Elements", "File" etc., & the item list belongs to the selected group. With U16 we are introducing a way to introduce a custom group in this drop-down pop-up control…
In MicroStation CONNECT Edition Update 16, we have added some APIs for TextTable.
In “struct TextTable”:
A MicroStation InitApp is a non-interactive app that is started using the Windows command-line -waAppName switch, or is listed in the MS_INITAPPS configuration variable.
The V8 SDK provides an InitApp example, but it didn't make it as far as CONNECT. I've written InitApp CONNECT Edition for anyone interested. It's a C++ app.
The code is almost entirely new, making use of MicroStationAPI classes and other functionality…
communities.bentley.com/.../2604.Import-Points.zip ◄ Download
Import Points CE 2.0 is an open source mVBA applet which runs in MicroStation CONNECT Edition. The applet enables users to import location data from text files of various formats. Imported points and accompanying fields are transferred to the dgn file with user-specified data mappings and graphics. See documentation for installation and operation details.
We would like to inform you of a newly added tool being available under: SDK Previews > Docs.
Please feel free to download, extract, and take a look at SDKHelp (Makes Searching and Exploring MicroStation and Microsoft API Help a bit easier).
We hope you find this item to be useful, provide a more productive development experience, and make Searching and Exploring our SDK resources a bit easier.
MicroStation V8i provides 32-bit VBA v6.5. As any other implementation of VBA (e.g. Microsoft Office), that lets you reference other 32-bit DLLs. Another name is OCX, when the DLL delivers a user-interface (UI) component. A popular OCX is the MsComCtrl.ocx, which contains a number of components that make VBA better. Many chose to use the ListCtrl (List view control), which offers several benefits over the ListBox delivered…
This article provides insights on how one would consider integrating a 3rd Party SDK to extend and use within the context of the MicroStation CONNECT SDK. This article will show the necessary steps to integrate the popular GoogleTest Framework and access some basic features.
As your custom applications become larger and more complex with accelerated release schedules you will want to apply more software industry…
In update 15, we have made some changes to PickList APIs.
/// Set the name of this PickList.
/// User needs to ensure there isn't a PickList with the same name in the PickListLibrary.
/// PickListLibrary's method GetPickListByName can check if a PickList exists.
/// @param[in] name The new name.
DGNPLATFORM_EXPORT void SetName…
With large drawing files we may experience VBA performance issues while selecting individually a large number of elements. Depending on the size and type this may take minutes until all elements are selected.I would like to point to NamedGroup elements to help to increase performance extremely.The idea is to add each individual element to one single NamedGroup and finally "select" this NamedGroup. Tests are showing…
TextTable seeds are stored in your DGNLibs. If you want to find a TextTable seed programmatically, you must...
The TextTable seed test is simple: the DGN model must contain exactly one element, and that element must be a TextTable. Putting that altogether, I've written an article…
Please note the MicroStation CONNECT Edition SDK Update 14 is binary compatible and can safely be used with these MicroStation CONNECT product release versions:
I wanted a way to enumerate the models contained in a DGN file. I didn't want to make the file active — that is, I didn't want to start a new MicroStation session. Rather, the enumeration should take place behind the scenes of an active session. My original goal was to find the cells in a cell library. As you know, a cell is a model, and a cell library is a DGN file.
The code is published in this articl…
PokeIt is a MicroStation VBA application. It's used to select, isolate or hide elements based on their attributes, such as level, color, line style, etc. The filter criterion is populated from a selected, or "poked," element rather than from a list in a dialog box.
PokeIt is also used to create elements similar to a selected element.
There are also a couple of additional “bonus” commands, Invert…