GEN_2D
Generalize lines and polygons by measuring distances only in the XY plane: vertex Z is not considered. Retain vertices shared with other entities in the drawing file.
Parameters
| Parameter number | Description | Optional |
|---|---|---|
| 1 | Code. If specified, generalize all entities in the drawing file with that code without prompting for a selection. | Yes |
Examples
GEN_2D
Prompt for the entity to generalize.
GEN_2D=010123
Generalize all entities with code 010123.
How vertices are removed
Apply the same algorithm as GEN, using TOL and TOL_ANG, with two differences:
- Distances and angles are measured in plan view. A vertex aligned in plan view with its span's ends is removed even if its Z differs: Z is excluded from the calculation.
- Shared vertices are retained. A vertex whose coordinates appear more than once in the drawing file is retained even if the algorithm would discard it. This keeps entities touching at that vertex connected. Coordinates must match exactly.
The entity's first and last vertices are always retained.
Notes
GEN_2Ddoes not generalize polygon holes or complex entities. Use GEN for them.- The selected entity must belong to the current model. With a code parameter, entities with that code throughout the drawing file are generalized.
If quality control rejects the modified entity, the original entity is preserved unchanged. With multiple entities, the command handles each independently: the original of each rejected copy is preserved, and the other entities are generalized.
Command characteristics
| Command type | Interactive command |
|---|---|
| Repeats automatically | Yes |
| Menu option | This command has no associated menu option |
| Toolbar | This command has no associated toolbar button |
| Extension | DigiNG.OrdenesStandard.dll |
| Implementation | Native |
| Related variables | TOL — generalization tolerance factor TOL_ANG — angular generalization tolerance factor REPEAT — repeat the last command executed |
| Related commands | DENSIFICA GEN TOL TOL_ANG |
| Internal name | {5F383460-6116-4324-9BA8-38DC97E6E5B1} |