Skip to content

Displace Metric - MDL Command for MicroStation V8i

License

Notifications You must be signed in to change notification settings

markstefanchuk/DLM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DLM

Displace Metric - MDL Command for MicroStation V8i

DLM or DL Metric is one of the first MDLs I wrote for production. The program has two commands MM = turn on metric conversion, UE = turn off metric conversion.

Use Case: The MM command will allow the user to take metric measurement, say 1000mm and use it in a dl key-in, but in a file with English units. Let’s say you want to draw a line with MicroStation. You start the place line command and then click the first point, then you might (old school) use a dl= command to tell MicroStation where the endpoint. For example, dl=1000 would normally put the end point at 1000 feet (or master units) along the x axis from the start point. But, when MM command is on, the line is placed at 3.2808 feet along the X axis.

Load The MDL

LOAD: MDL LOAD DLM

Commands

MM – turns on metric conversion to take displacements in mm, but draw them in feet (or automatically convert them) and then enter the displacement. This command is intended to be used in conjunction with DL= command and usually place line command.

UE – turns off the conversion (the MM command)

There are no prompts – just ID the first point and then the second point. The command will draw the line with the break.

Files:

  • DLM.MA – the compiled command for V8i
  • DLM.H – header file
  • DLM.MC – main source file
  • DLMCMD.R – command definition
  • DLM.MKE – make file used with the MicroStation development shell
  • Fdf.fdf – listing of include files (lazy way to incorporate include statements). This is NOT and Adobe file.

Compiling The MDL

Use bmake to compile via the MicroStation command window (delivered with the SDK).

Before you do the following, open dlm.mke and change the path for baseDir to point to your MDL programs folder.

Open the command window and cd to MircoStation\mdl\bin\

For a standard MicroStation install, that is C:\Program Files (x86)\Bentley\MicroStation V8i (Selectseries)\MicroStation\mdl\bin\

From this location you can run, bmake -a (path to app)\dlm.mke

For me, bmake -a Z:\Documents\Github\CADGURUS\dlm\dlm.mke

About

Displace Metric - MDL Command for MicroStation V8i

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published