Menu function examples

Examples how to define menu functions:

Open DXF file

Name:Open DXF

Id:1700

Type:Open vector file

Command:Dxf

Parameters:

Position:File/Formats

Function adds to the File/Formats -menu item named Open DXF, which starts automatically converter defined as Dxf in Vector file conversion list.

Save file using Geonic-format

Name:Save Geonic

Id:1705

Type:Save with format

Command:Geonic

Parameters:

Position:File/Save

Function adds to the File/Save -menu item named Save Geonic, which starts automatically converter defined as Geonic in Write conversion list.

Open a project file (*.pj)

Name:Open test.pj

Id:1700

Type:Execute internal function

Command:1121

Parameters:c:\temp\test.pj

Position:File

Function adds to the File -menu item named Open test.pj, which opens given project file and reads in all files.

To store selected points using predefined format into given directory

Name:Save selected using Geonic-format

Id:1706

Type:Execute internal function

Command:1371

Parameters:Geonic,c:\temp\*.* (or Geonic,c:\temp\transfer.gt)

Position:File/Format

This will add a new menu item in File/Format-menu, which stores selected point using Geonic-format in c:\temp-directory and asks name for the file (or uses TRANSFER.GT without asking the name).

Editing TIFF raster picture with Paint Shop Pro program

Name:Edit TIFF

Id:1720

Type:Execute external program

Command:c:\program files\paint shop pro\psp.exe

Parameters:%tif

Position:Tools/More

Function adds to the Tools/More -menu item named Edit TIFF, which asks from the user raster picture file with TIF-extension and starts Paint Shop Pro with that file.

Grid filtering with MKH.3DX additional function

Name:Filtering

Id:1730

Type:Execute additional function

Command:mkh.3dx

Parameters:4

Position:Tools

Function adds to the Tools-menu item named Filering, which starts function number 4 from mkh.3dx additional function module. This function handles point grid filtering.

Coordinate transformation from the local system to KKJ.

Name:KKJ transform

Id:1725

Type:Coordinate transformation

Command:kkj.hel

Parameters:

Position:Calculation/Transformations

Function adds to the Calculation/Transformations -menu item named KKJ transform, which makes Helmert coordinate transformation using kkj.hel transformation parameter file in settings directory.