Questions similar to this appear on the Be Community Forums. This topic was raised in the MicroStation Programming Forum.
Q How do I …
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.
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 …
It has a key-in …
SET ELEVATION ABSOLUTE
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.
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.
You can download the ModZ MVBA project.
The project includes the MVBA project ModZ.mvba
.
..\Organisation\Standards\vba
vba run [ModZ]modMain.Main
Post questions about MicroStation programming to the MicroStation Programming Forum.