Abstract Vertices Coordinates
Just beginning working in Micro Station VBAWe begin transforming our Micro Station Basic Macros into VBA.We have a three points Line string.Is there a very simple example in VBA on how to extract all...
View Articlethis code don't work well can anyone help me "v8i" "vba"
this macro make highlite on the clashes point that i already entered in excel format for this macro belowbut i face some problems1- the cloud on clash point are very far from the model2-there some...
View ArticleHow to Automatically Label Many Elements at Once using Property Fields
I have many line strings that I wish to label with a property field using the annotate - place text along command. I can only label one string at a time. Is there a way to select all strings and...
View Article[V8i VBA] How to determine a form control's object name?
Bit of a generic VBA question but I've yet to discover the answer I'm looking for.I have a form with 3 textbox's for RGB input values (TB_CustomRed, TB_CustomGreen and TB_CustomBlue).I have the...
View ArticleIs there a process limitation to the bentley.interop.microstationdgn?
We need to process approximately 200,000 dgn files. We would like to process these files on a server for obvious reasons.We have created a c# script that uses the bentley.interop.microstationdgn...
View Article[CONNECT C++] Dependency API
I would like to make a text element dependent on some other element. In dependency logic terminology, I want the text element to depend on some root element.When a user creates text in MicroStation...
View Articleiterate through dimension subentities
Hi, I have few drawings in which I have to update all leaders (dimension element) to have a specific properties; they were all made with style none; the code I am using is (microstation ss3):...if...
View Article[CONNECT C++] DRange3D initialisation
I found the DRange3D struct in MicroStationAPI help.In previous versions of the API, we had to do something like this to initialise a DVector3D to max/min values of points...void findHighLow (...
View Article[CONNECT - MDL C++] get active cellname
Hello,please help me understand what type of variable I need to use for getting ACTIVEPARAM_CELLNAMEOld code: char cnm[256]; mdlParams_getActive(cnm, ACTIVEPARAM_CELLNAME); if (cnm[0]) { if (Dbg)...
View Article[VBA] Validate a TextBox
VBA lets you place interactive controls on a UserForm. The TextBox is a popular control: it lets a user enter text that your code can subsequently use.Often, you want a user to type a number into a...
View Article[CONNECT C++] ECQuery::CreateQuery()
I want to "query" for ANY EC data on an existing element that belongs to a specific schema. I see where one can find ALL ECClass'es on an element by:...
View Article[CONNECT C++] DisplayRulePtrVector - how to use example needed
I'm working with Display Rules and have come upon a notation that I do not understand and cannot get to compile: DisplayRuleSetCPVector fileDisplayRules =...
View ArticleFence selection query
Hello, I have a query on how to exclude a region within a fence area when coming to calculate from a mesh model.Please see below picture, red region is the box I want to fence, but blue region which I...
View Article[CONNECT C++] How to get a ColorOverrideAction
In working with Display Rules, and drilling down through a existing Display Rule that I've created in a model. I get the vector of DisplayRuleActions, and iterate through it, I can determine the...
View Article[CONNECT C++] Are there any callbacks for Display Rules?
Are there any "callbacks" available for Display Rule modifications? Specifically, this is what I'm hoping to be able to do. I have defined a number of Item Types for my model. My tools will attach...
View Article[CONNECT C++] DependencyManagerLinkage::IRootsChangedCallback
I'm uncertain how to use this struct. It contains two pure virtual methods, so I should do something like this...struct MyDependencyCallback :...
View ArticleTag Definition variable not updating
Hello Everyone,I'm trying to save some DGN files as DWG files using:myDGN.SaveAs(str_PrintDestination & "\" & newFileName, True, B_Interop_UstnDGN.MsdDesignFileFormat.DWG)Everything goes okay...
View Article[CONNECT C++] Obtaining InfoField data from StringList Members
I can seem to retrieve the InfoField data from StringList members in CONNECT:I've got the StringListenum DISCIPLINEID_Disciplines { DISCIPLINEID_None = 0, DISCIPLINEID_Arch, DISCIPLINEID_Ctrl,...
View Article[Connect C# AddIn] Problem with Text Style
Hi,My system is windows 7, Connect, VS 2013code:using BCOM = Bentley.Interop.MicroStationDGN; using BMI = Bentley.MstnPlatformNET.InteropServices; using BM = Bentley.MstnPlatformNET; BCOM.Application...
View Article[CONNECT C++] Can I catch the opening of the "browse" dialog from...
Is it possible to catch the opening of the "Browse" button on the main MicroStation CONNECT Edition banner page? When that Browse button is pressed, it seems an Input Monitor function does NOT see...
View Article