tpm_cleanerrorfix

Land Desktop Development ARX CPP SDK

Up a level
tpm_cleanerrorfix
 
 

Fixes the current error.

int

tpm_cleanerrorfix(

ade_id clean_id);

Returns RTNORM or an error code.

clean_id The model ID returned by tpm_cleanalloc.

This function marks the current error to fix. It fixes the errors in the cleanup model, but does not fix the drawing. The objects in the drawing are not fixed until you call tpm_cleanend.

Each error has a default method that tpm_cleanend uses during error fixing. You can use tpm_cleanerrorset to change this method. For example, the default method for the dangling node error is to erase the link. If you call tpm_cleanerrorset for this error, the dangling node is moved to a new position, but is not erased.