copy-string("cps")

See this command in the command table.

To access this command:

  • Digitize ribbon > Transform > Copy.

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

  • Use the quick key combination "cps".

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

Command Overview

Make a copy of a selected string in another location, leaving the original string as it is.

Note: data is always copied into the current string object, regardless of the target object. See The Current Object .

Command steps:

  1. Ensure string data is loaded and displayed.

  2. Run the command.

  3. Select a point on the string you wish to copy.

  4. Select the position of the same point on the new, copied string.

    The string is copied to the new position, aligning the digitized points. Movement is performed across the currently active section.

  5. Click Done (or double-click) to stop editing.

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("copy-string @point=-27.533174,10.168432,0.0,1 @point=-26.900000,11.050000,0.0,1";

Where:

  • @point=-27.533174,10.168432,0.0,1 is the @point=X,Y,Z,nButton: comma-delimited point group (repeatable).

Parameters Table

Parameter Description Reqd? Example Syntax
@point=X,Y,Z,nButton

Comma-delimited point group (repeatable).

  • X , Y , Z : numeric values (double).

  • nButton : integer parsed from point input. (Parameter is not actually used so can be left as the example and ignored).

Y @point=-27.533174,10.168432,0.0,1

Related topics and activities