REDONDEA_Z

Round every vertex Z coordinate of contours bearing the specified codes to an integer.

Parameters

Parameter number Description Values Optional
1 Index contour code Code No
2 Intermediate contour code Code No

For example, REDONDEA_Z=020124 020123.

Notes

Process undeleted entities bearing the index or intermediate contour code. For each, add a new line with the same codes and each vertex Z rounded using Python's round, then delete the original entity.

The new entity is always a line, regardless of the original type. round rounds .5 ties to the even integer: 2.5 becomes 2 and 3.5 becomes 4.

If there are not exactly two parameters, sound the error tone and display a dialog box explaining the reason and usage.

This command is Python script redondea_z.py from ComandosDigi3DPython. Digi3D.AI installs it in OrdenesPython inside its installation folder. To modify it, copy the file to the macro directory and edit the copy: Digi3D.AI runs it instead of the installed file.

Round contour elevations explains the code.

Command characteristics

Command type Immediate command
Repeats automatically No
Menu option This command has no associated menu option
Toolbar This command has no associated toolbar button
Extension redondea_z.py
Implementation Python
Source code redondea_z.py
Related variables No related variables
Related commands FILTRAR