simplify-string ("sps")
See this command in the command table.
To access this command:
-
Digitize ribbon > Condition > Condition > Simplify String.
-
Using the command line, enter "simplify-string" and press ENTER.
-
Use the quick key combination "sps".
-
Display the Find Command screen, locate
simplify-stringand click Run.
Command Overview
Reduce the number of points on a string whilst attempting to retain a shape most representative of the pre-simplified version. Start and end points of the string are not adjusted with this command.
Note: this is similar, and can be used as an alternative to, the condition-string ("cond") or reduce-points ("red") commands.
Command steps:
-
Digitize or load string data.
-
Optionally, select the string data to be simplified. If no data is preselected, you can selected it after the command starts.
-
Run the command.
-
On the Simplify String screen, enter a Simplification Distance. This is the chord length within which a single point is added. Smaller values lead to a higher number of remaining points.
-
If no data was preselected, pick string data in any 3D window.
String data is simplified.
-
If string data was not preselected, click Done to complete the 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):
Where:
-
@point=100.0,200.0,0.0,12is theParsePointArguments: X,Y,Z,nButton. -
'0.5'is thesimplificationDistanceParam: a string value parsed as numeric simplification distance and must be > 0.
Parameters Table
| Parameter | Description | Reqd? | Example Syntax |
|---|---|---|---|
ParsePointArguments
|
X,Y,Z,nButton.
|
Y | @point=100.0,200.0,0.0,12
|
simplificationDistanceParam
|
A string value parsed as numeric simplification distance and must be > 0. |
Y | '0.5'
|
Related topics and activities
