Share

AcDbSymbolUtilities::Services::repairSymbolName

C++

virtual Acad::ErrorStatus repairSymbolName(
    AcString & sNewName, 
    const ACHAR * oldName, 
    bool allowVerticalBar
) const = 0;

Description

Returns a "repaired" symbol name. The method uses the same symbol name validation rules as the validation functions (such as validatePreExtendedSymbolname() and validateSymbolName()) except that the returned string does not contain any illegal characters. Those are replaced with valid replacement characters.

If the symbol name was repaired, then sNewName is a string that contains the repaired symbol name. sNewName is empty if oldName did not need any repairing.

Parameters

Parameters Description
sNewName Output repaired symbol name
oldName Input pointer to symbol name to repair
allowVerticalBar Input Boolean to indicate if vertical bars are allowed in the symbol name

Returns

Returns Acad::eOk or Acad::eInvalidInput if the specified name is nullprt or empty.

Links

AcDbSymbolUtilities::Services, AcDbSymbolUtilities Namespace

Was this information helpful?