translate-point

See translate-point ("tra")

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("translate-point @point=100.0,200.0,0.0,1 '1.0' '2.0' '3.0' 'yes' '2'";

Where:

  • @point=100.0,200.0,0.0,1 is the ParsePointArguments: X,Y,Z,nButton.

  • '1.0' is the strX: a string value parsed as numeric offset X.

  • '2.0' is the strY: a string value parsed as numeric offset Y.

  • '3.0' is the strZ: a string value parsed as numeric offset Z.

  • 'yes' is the strCopy: a string value interpreted as yes/no for copy mode (first letter y enables copy).

  • '2' is the strRepeat: a string value parsed as integer repeat count (optional).

Parameters Table

Parameter Description Reqd? Example Syntax
ParsePointArguments

X,Y,Z,nButton.

  • X is a numeric (double) world coordinate value.

  • Y is a numeric (double) world coordinate value.

  • Z is a numeric (double) world coordinate value.

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

Y @point=100.0,200.0,0.0,1
strX

A string value parsed as numeric offset X.

Y '1.0'
strY

A string value parsed as numeric offset Y.

Y '2.0'
strZ

A string value parsed as numeric offset Z.

Y '3.0'
strCopy

A string value interpreted as yes/no for copy mode (first letter y enables copy).

Y 'yes'
strRepeat

A string value parsed as integer repeat count (optional).

N '2'