MirrorVertical - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Mirror objects on its vertical central axis; corresponds to choosing Spatial > Edit > Transform > Mirror Horizontal. This function requires the MapCAD Tool and can be executed via the Exec() command. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

Exec("MapCAD.mbx","MirrorVertical")

Return Value

Logical If an object can not be mirrored or the function failed, the return value=false.

Description

Use the MirrorVertical function to mirror all selected objects on their common vertical center axis.

The MapCAD tool must be loaded. This function requires an active map window to determine the projection and units. To set the calculation accuracy, open the MapCAD settings dialog.

Examples

'Mirror selected objects vertically.
Dim Result as logical 
Result = Exec("MapCAD.mbx","MirrorVertical")