Questions similar to this appear on the Be Community Forums. This topic was raised in the MicroStation Programming Forum.

Q How do I …

Modify Element Elevation (ModZ)

ModZ was an MDL application for MicroStation V8. ModZ is not available for MicroStation CONNECT. ModZ is a simple tool to modify the Z-value (elevation) of a DGN element. Apart from that, it leaves the element unchanged.

This VBA project is a reimplementation of that MDL tool, primarily for the MicroStation CONNECT era.

Set Element Elevation

MicroStation CONNECT has a built-in tool to set element elevation, so it's not clear why people have requested that ModZ be ported to that platform …

Set Element Elevation

It has a key-in …

SET ELEVATION ABSOLUTE 

ModZ VBA

ModZ VBA implements similar functionality to MicroStation's built-in command. It's an exercise in VBA as much as anything. ModZ VBA is informed by MicroStation VBA help, particularly the section Flattening Elements.

ModZ VBA provides a UserForm similar to MicroStation's built-in command.

ModZ UserForm

The Pick Element button starts a locator class clsElementLocator. It lets a user pick an element, then applies a transform that sets the Z elevation of the element. Finally, it rewrites the element to make the change persistent.


Download

Download the ModZ Tool

You can download the ModZ MVBA project. The project includes the MVBA project ModZ.mvba.

Questions

Post questions about MicroStation programming to the MicroStation Programming Forum.