Bentley Communities
Site
Search
User
Site
Search
User
Welcome
Products
Support
About
More
Cancel
Browse By Tags
All tags
MicroStation Connect
VBA
Autoload
batch
batch process
CellRotation
ComplexShape
CONNECT Edition
Excel
Macro
MDL
Message Center
MicroStation
MicroStation 2023
MicroStation Connect Edition
Microstation Connect VBA
MicroStation Programming
microstation vba
MicroStationAPI
mvba
OpenRoads Designer Bugs
powerdraft
Programming
scanning cell library
v8i
V8i VBA
Visual Basic
Microstation Connect VBA Batch Process Error
Björn Eriksson
Hi, Been coding in VBA for a couple of years, and know I have a new problem I have never seen before. I have a VBA-tool to scan a model and print file/object information to Excel. All works fine, but when I run my code with Batch process to loop several…
1 month ago
MicroStation Programming
MicroStation Programming Forum
Autoload VBA macro when Microstation Connect or OpenRail Designer starts
Samuel Wiklund
Hi, I have trouble to autoload VBA-macro on startup. The one I want to autoload is ViewSet. I want it to be a part of the configuration so a variable that do the autoload is preferd. I have tried: MS_VBAAUTOLOADPROJECTS but is dosnt work for some…
2 months ago
MicroStation Programming
MicroStation Programming Forum
[Connect Edition Update 17 & vba] How rewrite the following code line with SetXExpressionValue for Microstation Connect
Joy van Vliet
Hi everyone, I am looking into old code (from V8I) and I am trying to make the old code applicable to Microstation Connect. When I run the code, it skips the following line and goes directly to the error statement. SetCExpressionValue "s_vctrlPrefs…
Answered
3 months ago
MicroStation Programming
MicroStation Programming Forum
[MicroStation Connect Version 10.16.02.34] Draw polyline from coordinates in text file
Marco W
Hi community. I have a *.txt file with coordinates (format PointNumber,x,y,z): 101,0.534,0.545,0.535 102,2.523,2.945,1.556 103,2.876,0.987,1.233 104,4.645,3.645,4.656 105,5.234,2.543,3.345 241,8.435,6.754,9.345 242,9.345,11.564,5.566 243,10…
Answered
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
How to code a "return" for Message Center-Details pane
Mark Winegar
MicroStation Connect update 16 - VBA I am writing a tool that will send information to the Message Center in MicroStation. I understand how to return or continue a line of code in the VBA editor to shorten the line but for the Message Center, I do not…
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
VBA Changing color Level
Gunther Groenestein
Hello, I have quite a simple question, but I'm struck in the code. My goal is to annotate an element with a note. I select an element. Get the info of that element: Levelname and color. The note is placed on a new level, which is made of the source…
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
get cell angle MVBA
Mark Winegar
MicroStation Connect update 16 MVBA I am trying to get cell rotation in the active dgn. When I move through the file and gather data, if a cell has a rotation of 12.25, ee.Current.AsSharedCellElement.Rotation.RowZ.Z does not report it correctly or…
over 1 year ago
Developers and Programming
Developers and Programming Forum
Excel VBA to Modify Microstation DGN
Kefan Zhou
Hello, I am pretty new to using Excel VBA to modify microstation file. My goal is using the cell values in excel to update tag sets and turn on/off layers, and purge certain empty tags (in different tag sets and under different layers). I assume…
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
Detecting a Cached Saved View Attachment in MicroStation CONNECT
Peter Jones
Hi All, I have some legacy VBA code from v8i that I'm trying to port over to the CONNECT versions - it's using a CExpression with a pointer into the referenceFile struct for a specific reference: Private Declare PtrSafe Function mdlRefFile_getInfo…
over 3 years ago
MicroStation Programming
MicroStation Programming Forum
scanning cell library
Dilip Bhandarkar
I am trying write a VBA app to scan a cell library to substitute fonts and levels in cells. I have written code to get into a DGN file and modify cells' fonts and levels and it works, but when I tried opened a cell library like a DGN file and run the…
over 3 years ago
MicroStation Programming
MicroStation Programming Forum
vba code to add text to Text Editor CE
John Davidson
Hi Folks, In v8i I was able to automatically populate the text editor with desired text ready for a user to finish the input, but since upgrading to CE it will not work. It will work with place text above/below etc. but not in the text editor. The commands…
over 3 years ago
Developers and Programming
Developers and Programming Forum
How to get key press event in MicroStation CONNECT using vba
Priyanka Ravi
I need to get the key pressing count (Function key pressing count) in MicroStation CONNECT window using vba. Kindly give your suggestions.
over 4 years ago
MicroStation Programming
MicroStation Programming Forum
[Connect VBA] Text justification and origin
Pierre ST-Hilaire
We have an application that works both on MicroStation and PowerDraft. Most of the code is in C#. VBA or MDL code mainly contains code that extract information from drawing or code that draw elements. From what I understand, MicroStation Connect has…
over 4 years ago
MicroStation Programming
MicroStation Programming Forum
OpenRoads Designer CONNECT - unable to start Visual Basic
Andre Sprong
When I want to use Visual basic I get the following error. Does anyone has a solution? Thanks!!
over 4 years ago
OpenRoads | OpenSite
OpenRoads | OpenSite Forum
MicrostationConnect Text Element
Priyanka Ravi
I need to add text element in line element end point, So I set the text element origin point as line end point. But the text is far away from line element end point around 1000m. Kindly share your thoughts if I need to change in Microstation Connect settings…
over 4 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT VBA] Modify ComplexShape
Maxim Kulikov
Hi! I have a two functions for work with ComplexShape: Public Function ModifyElements(PCo() As Point3d, PTm() As Double) As Long Dim myScan As New ElementScanCriteria Dim myEnum As ElementEnumerator myScan.ExcludeAllTypes myScan.IncludeType…
over 7 years ago
MicroStation Programming
MicroStation Programming Forum