Tips

Unit Round Off

In MicroStation the round off of working units is controlled by the Settings > Design File > Working Units > Accuracy setting. This applies to both coordinate input and display in MicroStation tools. Unfortunately there is no automatic conversion for us in VBA. The example function below demonstrates a method that can be used to [...]

Clean Up After Yourself

You have probably heard some of these simple rules of life:
- If you open something, close it
- If you turn something on, turn it off
- If you spill something, wipe it up
These same rules apply to macro development. Many programmers get sloppy because they assume the computer will clean up for them. In most cases [...]

VBA Help

MicroStation VBA has a very robust help system with many examples for common tasks. To get help on a VBA function, property, etc. hit F2 on the keyboard to open the Object Browser. Selecting an item in the browser window will display the arguments and return value for the object. For more information right click [...]

Optimized Fence Clipping

There is a toggle that will allow you to fence clip elements in different fashions. Depending on how you want to your fence clipping operation to perform, it can automatically close shapes, surfaces and solids or you can trim the elements. Under Workspace>Preferences>Operation there is the option to Optimized Fence Clipping. [...]

Protecting VBA’s

If you have done much MicroStation VBA development at all you realize how easy it is for a casual or curious user to open the VBA Editor and possibly break your code. For internal company deployments you can modify the security on the .mvba files so that these users have read-only access. When distributing [...]

Annotate MicroStation Graphics with InRoads

Now you can annotate MicroStation graphics using an InRoads Feature Style. This will allow you to label lines and arcs just as you would without having to import the data into a Geometry Project.

From the InRoads pull down menu 
File > View Geometry > Annotate Graphics. The Annotate Graphics dialog will appear.
Select a Feature [...]

Using the Macro Recorder to Capture Commands

The MicroStation VBA Macro Recorder is a useful tool beyond just capturing workflows for creating your own macros. A common dilemma for users wanting to create Batch Process scripts, or their own custom toolboxes is knowing the key-in commands they need for the task they want to accomplish. Using the Macro Recorder to capture the [...]

Use Constants for Common Values

Some developers will calculate common values in code every time they are needed in an
application. This slows down your application as it has to calculate the value every time.
Others will enter in the straight numeric value, which is just frowned upon programming
practice. The best way to handle these values is to use VBA Constants.
‘Common degree [...]

Autorun MicroStation VBA

A common question asked by new VBA developers is how to automatically start a macro when you start MicroStation. There are several steps involved in this process.

Set your VBA project to autoload when MicroStation starts. This can be done by either adding the name of your VBA project to the MS_VBAAUTOLOADPROJECTS workspace variable, or by [...]

3D Primitive Solids Slab and Pyramid

In this tutorial we will demonstrate the 3D primitive solids tools using AccuDraw. We will build a street light using the Slab Solid and Pyramid Solid tools.

« Older Entries
Seo Packages
What is seo - seo tips