Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Browsing all 4331 articles
Browse latest View live

[Connect C++] Open dgn fails

Hi together,I have problems with a workflow that worked fine in V8i. I do the following:change the reference nesting of my referencewait for MicroStation Connect to save automaticallyset the...

View Article


[CONNECT] Named Expression Question

I would like to use System.Environment.GetEnvironmentVariable() to evaluate a MicroStation configuration variable, but I have not been successful. It seems that the MicroStation config variables (e.g....

View Article


[CONNECT] Visibility Test for Ribbon Items.

I'd like to control the display of a Ribbon Bar Group item based on the value of a configuration variable. Jan Slegr has answered my initial questions about this, and I now have a simple tool that...

View Article

[CONNECT C++] mdlFileList_edit() default directory fails with Windows dialogs

When the "Use Windows file open" option is selected under user preferences->look and feel, the defaultDirectory parameter does not work with the mdlFileList function:StringListP mdlFileList_edit  (...

View Article

[CONNECT C++] Color Book color name length

The MicroStationAPI provides the Color Book class.  Its method GetEntry(RgbColorDefP, WCharP colorName, int) requires a WChar string buffer.  However, the size of that buffer is unspecified.  Two...

View Article


Text Background BorderMargins.X and BorderMargins.Y not responding to macro

I have a very simple macro below that appears to be correct but for some reason the BorderMargins.X and .Y values do not change when the macro is run. Why is that?Sub Macro1()        Dim otext As...

View Article

speed processing

I have selected over 2000 Elements, and I want to change them to another color(11).Here is my codeThe execution time is over 5 secondsBut for Microstation's "Change attributes" tool it's fast (less...

View Article

Image may be NSFW.
Clik here to view.

[CONNECT C#] Update level attributes

I'm updating priority on existing levels to change the display order. The change is reflected in LevelManager but the information in the views are not affected until I click "Update levels from...

View Article


[Connect VBA] How do you set the justification on a text element prior to...

Hi,When there is an existing text element, you can change the .textstyle.justification and then .rewrite and the justification is changed.  When I am creating a new element, I can change the...

View Article


[CONNECT C++] Replace Text

I'm replacing text in a cell.  I enumerate the cell descriptor like this...if (SUCCESS == mdlCell_getElmDscr (&cell, nullptr, &origin, nullptr, TrueScale, &rotation, nullptr, 0, 0,...

View Article

[CONNECT] Named Expressions and Symbol Providers

I'm attempting to understand how to define a Symbol Provider so I can create a Named Expression test that will be used in a visibility test for some ribbon items. The available "Sync Group Resource"...

View Article

MVBA to import element template into the current DGN from an XML file

Hi,As in the subject is there a way to import an element template into the current DGN from an XML file? I recorded the actions but that did not reveal much and I couldn't find any related commands in...

View Article

[CONNECT Ribbon] Update Icon Display for DropDownButton Selection

In my custom ribbon, I am using a DropDownButton with 5 items. Each item has an Icon entry for it and the DropDownButton itself also includes an icon. When the DropDownButton is selected, the list of 5...

View Article


Clear Message Center

How does one clear the Message Center programmatically?  I'd like to do that with MicroStation V8 and MicroStation CONNECT.

View Article

Printing Accounting Variables in VBA

Hi everyone,I have a VBA macro which uses Microstation's printing accounting variables.This macro has been working for years with no issues. I recently tested it in Microstation SELECT Series 4 andit...

View Article


Image may be NSFW.
Clik here to view.

KEY IN for setting text annotation within the "Place Note" dialog box?

Afternoon Folks,Is there a way to set  or change the Annotation Scale for the Text when you place the Note?  I was trying to create a list of Key-in for a macro to make sure the proper settings are...

View Article

Image may be NSFW.
Clik here to view.

can't reload C# Addin (V8i)

Hi everybody.I'm programming a C # addin (.dll file). Name it myAddin1. After using the "mdl load myAddin1" keyin, it shows the form as this image. I want to close this form after my form has been...

View Article


Microstation V8i SS3 - Locate Locked cells

I have couple of cells in my design which are Locked.I'm trying to locate those cells to read its components.below the code:Private Sub ILocateCommandEvents_Start() Dim oLocateCriteria As...

View Article

[CONNECT C++] mdlDim_setStrings usage question

Hi,How can I assign value to "mdlDim_setStrings" ? In V8i we could set it easily as code below:swprintf (dim_strings.primary.single, L"%.2f", fabs (pPnt1->y - pPnt2->y) / D_DGN_RESOLUTION /...

View Article

Foreign language display issue in CONNECT

I have migrated from old MDL application to the 64-bit MicroStation Connect environment. However there are still a lot of resources, such as tool dialogs and messages defined in traditional .R format....

View Article
Browsing all 4331 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>