Browse By Tags

  • How to control the Level Overrides using an MVBA

    It has been a very VERY long time since I had to do anything in MVBA. All I need is an example or point me in the right direction. I'm trying to setup a VBA that will turn on the Level Overrides then turn on specific levels overrides and set the color…
  • Deleted elements - reading information from Element header in VBA

    Hello, I've created MVBA macro writing elements' level name and its ID to .txt file. I've used ElementScanCriteria to select all elements from file. eScanCriteria.Reset Set eEnumerator = ActiveModelReference.Scan(eScanCriteria) This solution extracts…
  • Need to access element raw data linkage property in VBA

    To view linkage data, select an element, and select properties from the context menu. at the bottom of the properties window is a section labeled "Raw Data" with a "Linkage" property. Clicking on the numeric value of this property brings up a small .net…
  • Can VBAs self-populate?

    I would like to know if anyone has had any success populating a VBA with text within a DGN. For example: If within my VBA I had the following URL to attach to an element:
  • Re: V8i VBA - Level object property - Number of elements?

    Another user also had interest in finding similar code to obtain an element count by level in this thread . Simply insert this code into a new module and either run or step through the code in the Microsoft VBA Debugger and view the results in the Debugger…
  • Re: [vba] raster Inherit GeoCS from Model parameter

    Daniel, Three options come to mind that you may want to try... You could use the RasterManager.Rasters.Attach VBA function to obtain a raster object. This object contains a GeoReferenceInformation object that could be use to set the GCS on a raster…
  • Re: How to change the display style of an element in VBA?

    Although at this time there is no direct VBA API call to get/set an element's display style you can modify this property through MicroStation VBA's PropertyHandler object. TIP: Whenever a search of the VBA object browers or help does not return any…
  • Re: Getting selected subelement in Cell

    Bert, Even though as Jan states there is not an element information API, fundamentally an element is hilited and I believe the code below may allow you to identify that selected (component/sub) element from the overall complex element originally identified…
  • Re: element count in a particular level

    Please take a look at the code I posted here to see if it meets your need. HTH, Bob
  • Determining the type of Element

    I have a design file with many kinds of elements. I need to write a script which will do a certain process depending on the type of the element. Is it programmatically possible to determine the type of the element (ShapeElement, BSplineElement, SmartSolidElement…
  • Re: How to delete an element in dgn file?

    VBA Element Manipulation Lin: For example, now I want to move an element, I first copy it and move it to some place, then I delete the original element. There are two questions here: How do I move an element? How do I delete…