tpm_cleangroupsubtype

Land Desktop Development ARX CPP SDK

Up a level
tpm_cleangroupsubtype
 
 

Determines the subtype of the current group.

int

tpm_cleangroupsubtype(

ade_id clean_id);

Returns a subtype code or an error code.

clean_id The model ID returned by tpm_cleanalloc.

For an example that shows how you can use the cleanup functions, see tpm_cleanalloc.

Subtype Codes
1 Degenerate entities (subtype of Erase Short Objects)
2 Short entities (subtype of Erase Short Objects)
3 Short segments (subtype of Erase Short Objects)
4 Vertex is near to segment (subtype of Extend Undershoots)
5 Vertex is near to vertex (subtype of Extend Undershoots)

Codes 1 through 3 are subtypes of the short type. Codes 4 and 5 are subtypes of the undershoot type. This function is useful for short and undershoot errors only.

Degenerate Entities  A degenerate polyline has only one vertex. This invalid vertex type sometimes results from the drawing cleanup process, and can be removed by further drawing cleanup.