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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…