[CONNECT C++] Need to modify text/textNodes in a cell
I have a need to transform (i.e. mirror) text and textNodes inside a cell as it is placed in order to orient the text as per our graphics standards. For each text element I need to get the text range...
View Article[CONNECT C++] Replacement for mdlText_extractShape()
In trying to develop a replacement for mdlText_extractShape(), the help file recommends:// This is the underlying range. DRange3d nominalRange = textBlock->GetNominalRange (); // You may then...
View Article[CONNECT] Nautical Miles not present in EC Schemas
One of the options for DGN model units is nautical miles...However nautical miles (nm) is not included in either the Unit or Mstn Property Formatter schema. I don't know how many people use NM as...
View Article[CONNECT C++] Questions about TransformInfo and reflection
When mirroring a cell with text, it is possible to set the TRANSFORM_OPTIONS_DisableMirrorCharacters options and provide a MirrorPlane such that as the cell is rotated, the text elements are 1) not...
View ArticleMDL and upgrading MicroStation from SS3 to SS4
I have a large body of MDL code last compiled and tested in SS3. It is still in pseudocode form. Do I need to recompile in order to upgrade MicroStation from SS3 to SS4? Do I need to convert to...
View Article[CONNECT] Enhancement Request: add Hectares to Mstn Property Formatter schema
In the metric world, Hectares is a common way to measure land area. A Hectare is 10,000m². It's analogous to the Acre in the English way of measurement.The MicroStation Unit schema includes...
View Article[CONNECT C++] Combo Box: remove unwanted items
Here's my Combo Box resource definition...DItem_ComboBoxRsc COMBOBOXID_AreaAltFormatChoice = { NOCMD, LCMD, NOSYNONYM, NOHELP, MHELPTOPIC, HOOK_CBO_AreaAltFormatChoice, NOARG, 46, "", "", "", "",...
View ArticleMDL function difficulties: Converting string to long
Hi all. I'm attempting to set up some dimension styles using VBA. Of course, VBA doesn't have the ability to do this on its own, so after some searching, I found an example of what I want on this...
View Article[CONNECT C++] Replacement for mdlRMatrix_ functions in CONNECT API
In pre CONNECT, I do something like:// get the view rotation RotMatrix invMatrix ={0}; mdlRMatrix_getInverse( &invMatrix, (RotMatrixP)ev.GetViewport()->GetRotMatrix() ); // rotate the view...
View Article[CONNECT C++] How do you get an MSWindowP to the main CONNECT application...
I'm wanting to add some text to the main CONNECT application window, but I can't figure out how to get an MSWindowP. I tried mdlNativeWindow_getMainHandle(), but it returns nullptr whether I pass in 0...
View Article[CONNECT APIs] Documentation Improvement Requested
The current API documentation (MicroStation CONNECT Update4) makes it hard to find things. In particular, topic overview descriptions that introduce a part of the API do not make themselves known....
View Article[V8i C++] Setting the Text Style for a Dimension Style
I wish to programmatically set the TextStyle for a dimension. I obtain a DgnTextStylePtr for the text style, and use it to get the ID ( textStylePtr->GetID() ). With that, I want to set the Text...
View Article[V8i SS3 c#] Setting element line style not utilizing the default linestyle...
I do not have too much experience with custom line styles so I apologize if I am missing something simple.I have a line style defined with a scale factor of 3.937 as you can see here: If I create an...
View Article[CONNECT C++] Assigning a GCS to a raster attachement
I've got code that attaches a raster file. However, that raster has no GCS, and I wish to assign one. I can use DgnRasterPtr::SetDgnGCS( DgnGCSCP ) to "assign" the projection, and I *think* I need to...
View Article[CONNECT C++] #include
When I #include the above referenced file into my project, when I attempt to compile the code I get:1>c:\program files\bentley\microstationconnectsdk\include\rastercore\RasterExporter.h(160): error...
View Article[CONNECT C++] RasterGCSUtility Class
Trying to use RasterGCSUtility::CreateFrom(UInt32, DgnModelRefP) and I'm getting a "unresolved reference" error. I am linking against RasterCore.lb, but when I dump out the exports from that .lib, I...
View ArticleMicrostation v8i topo files not falling into place
I need help I have imported an AUTOCAD file with some line work and it picked it up flawlessly the issue that I am having is when I attach actual Microstation file to the project I am doing they do not...
View ArticleHow to activate a model in C# V8i
I am trying to activate a model. The below code gives me the error:An exception of type 'System.EntryPointNotFoundException' occurred in Bentley.Civil.CadSystem.Microstation.2.0.dll but was not...
View Article[V8i MDL] Loading DialogItemListRsc resources via mdlResource_load()
I'm attempting to use a DialogItemListRsc, one for each "similar" type of data (OptionButtons) so I can use mdlResource_load to load the correct OptionButton resource when my tool starts. Initially,...
View Article[CONNECT C++] Check whether an Item Types library is Available
How can I check to find if an Item Types library is available in the current session of MicroStation?That is, I want to find if a schema is visible and available to my application. The question arises...
View Article