Browse By Tags

  • List all C Expressions from old MDL

    I'm developing new addins to a system (+20 years old) and I need to handle with some old MDL which I don't have the code. This system also interact with Oracle and others systems, so I'm not even thinking to redo the entire system. I also don't have access…
  • Assistance with Creating Custom DLL Function to Call from MVBA

    Hello, I am attempting to upgrade an older V8i .MA macro so that it can be used with MicroStation CONNECT. Before diving into the specific details, here is a summary of my software and computer information. MicroStation CONNECT Edition - Update…
  • Detecting a Cached Saved View Attachment in MicroStation CONNECT

    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…
  • Need Custom Traversing/Cogo MicroStation Tool

    I need to find or develop a custom tool that a MicroStation user can use to draw consecutive lines and tangent and nontangent curves easily. Accu draw is to cumbersome because you have to move from field to field, use your mouse to indicate direction…
  • How to paste an object in several drawings at once

    I have a 100+ drawings to modify for "Cancelled" revision and I have to paste it (a big word CANCELLED ) in each file. Is there a way like VBA-macro for doing them instantly instead of opening each file, pasting this object, closing it and doing it hundred…
  • Bulk fillet linestring via script file or VBA

    I am working on viaduct post tensioning & have managed to plot a 3D smart line for the tendons (~700 done automatically) but I am now trying to add fillets to them via a macro or VBA to bulk fillet each line based on a dynamic radius. For example end…
  • [CONNECT Update 10 MDL] Help with writing a macro or a mdl app or vba please.

    Hello everyone, This is my first ever post here so please be kind to me. I work in an organization where we have just upgraded our Microstation v8i SS3 to Microstation Connect edition Version 10.10.00.23. To cut long story short, I've been thrown…
  • Programming - MicroStation

    General Macro Recorder MDL VBA
  • Logitech gamepad in Microstation or Navigator for walking and flying

    Hello, Does anyone know of a way to connect and use a gamepad controller with Microstation v8i? I have a an older Logitech Dual Action gamepad, and I was hoping I can map it to Microstation's Walk ability. If it can be mapped like the movements…
  • msdV7Action.UpgradeToV8 doesn't seem to work

    I am processing some dgn files using C# and the bentley.interop.microstationdgn library. The code where my script crashes is pretty straight forward. using BCOM = Bentley.Interop.MicroStationDGN; BCOM. ApplicationObjectConnector ustnInstance; …
  • Procedure to search the value from the Excel in a Microstation files

    Hi all, Should I create a macro or procedure to search the value from the Excel file in a Microstation files. I have a value (text or number) written to Excel I want to create a link that searches the value (text or numbers) on the dgn file. Thank…
  • RE: selecting cells

    Hi Marco, Are your cells Graphic cells or shared cells? If they are graphic cells you can review askinga Article communities.bentley.com/.../find-cells-even-easier-with-this-utility_2100_- if using shared cells you can review this https://www.la-solutions…
  • Select all element on a level

    Good afternoon, i'm looking to create a VBA that allows you to search for a field in the Element information (e.g. description or text string) and high light the results in view one.. Not sure if this can be done but if anyone knows how i can…
  • RE: eed a key in for reference annotation scale toggle turn off /on

    Hi Sunil : There is no key-in to ON/OFF Reference Annotation Scale. This link by Robert Hook has a VBA which calls Mdl function mdlRefFile_setParameters to set the annotation property. Check this link for how to load and run a VBA macro. Regards…
  • Get CoordSystem

    I am trying to use a vba wrapper declaration which is given below. But how to get the value of coordsystem using vba which in turn used as a input parameter for the below given wrapper declaration. Declare Sub mdlView_getViewRectangle Lib "stdmdlbltin…
  • WORDPROC commands and/or syntax

    Fellow Microstation Programmers, I recorded a macro and got the following commands. I'd like to modify them to do other things, however, I don't know what commands ("moveCaretToPosition, changeEDF, etc.) are available. Also I don't understand the syntax…
  • MVBA - mdlLineStyle_getElementDescr

    I'm trying to get all subelements of styled line by mdlLineStyle_getElementDescr by following code... And what I get is only one element of the line style, instedad of all subelements of all droped components. How to do make it work? Paul…
  • DDE LInks

    Hi There So I have text linked to an excel spreadsheet via dde links. I need to be able to update all 28 links by one button click. Ive gotten this far: Implements IModalDialogEvents Private Sub IModalDialogEvents_OnDialogClosed(ByVal…
  • Re: getIntersectionpointsOnElementsOnRay

    VBA Mesh Elements Unknown said: At least meshes aren't intersectable. As you've probably noticed, VBA is not big on meshes. In fact, there isn't a MeshElement object. MDL Mesh Elements MDL has extensive support in the mdlMesh_api…
  • Re: Meshes/Shapes and normal flipping

    Mesh API Unknown said: How can I read/write the normal of meshes and shapes using VBA? With difficulty. There is no VBA object that represents a mesh element . Unknown said: I am looking at tens of thousands of elements …
  • Re: Level operations slow when using levels in dgnlib

    Processor-Intensive Applications Krister: The problem is that all operations need to be done for each level because in the actual application new elements are read and created in each iteration of the loop. It's well known that Microsoft…
  • Access item/element information in Navigator (or MicroStation) via VBA or MDL

    I'm trying to perform the following in Bentley Navigator but the same question would apply in MicroStation. In Bentley Navigator (or MicroStation V8i) if you select the Element Information icon you get a dialog full of information. It has the General…
  • Write a COM Server in C# - call from VBA, C++, or C# or VB.NET

    COM Server created using .NET We've written an article about creating a COM server using .NET . It details the steps required to create a COM Server DLL (also known as an ActiveX component) using Visual Studio. Use a .NET COM…
  • How check which command (some id or something) is currently active in Microstation

    or maybe is possible to disable some microstation commands at runtime (ie trim or extend) I have to limit user to use only commands implemented im my app (to place and/or modify elements). Perfect way is to disable even keyins (PLACE LINE etc..…