mirror-string ("smm")

See this command in the command table.

To access this command:

  • Digitize ribbon > Transform > Mirror String.

  • Using the command line, enter "mirror-string" and press ENTER.

  • Use the quick key combination "smm".

  • Display the Find Command screen, locate mirror-string and click Run.

Command Overview

Draws a mirror image of a string or multiple strings, reflected about a defined mirror plane. The attributes of the original string data are transferred to the mirrored string data.

Command steps (string selection during command):

  1. Run the command, and follow the prompts in the Status Bar.

  2. Select the string to be mirrored.

  3. Select the start point for the mirror plane.

  4. Select the end point for the mirror plane - the selected string is mirrored about the defined plane.

Tip: Multiple strings can be mirrored using this command by preselecting them in a 3D window, then running the mirror-string command.

Command Automation

You can automate by passing this command and parameters into oDmApp.ParseCommand(), using any COM-aware scripting language.

Note: For more information on scripting in Studio NPVS+, please refer to your Scripting Tutorial (Help > Scripting Tutorial).

Example Parameter String (JS):

oDmApp.ParseCommand("mirror-string @point=100.0,200.0,0.0,1 @point=120.0,220.0,0.0,1";

Where:

  • @point=100.0,200.0,0.0,1 is the first ParsePointArguments: X,Y,Z,nButton to pick input string/first mirror point.

  • @point=120.0,220.0,0.0,1 is the second ParsePointArguments: X,Y,Z,nButton to define mirror reference.

Parameters Table

Parameter Description Reqd? Example Syntax
first ParsePointArguments

X,Y,Z,nButton to pick input string/first mirror point.

Y @point=100.0,200.0,0.0,1
second ParsePointArguments

X,Y,Z,nButton to define mirror reference.

  • nButton is an integer value parsed as part of each @point input. Enumerated types are:

    • 1: Left mouse button behaviour

    • 2: Middle mouse button behaviour

    • 4: Right mouse button behaviour

Y @point=120.0,220.0,0.0,1

Related topics and activities