Share

acdbMakeFieldCode

C++

inline Acad::ErrorStatus acdbMakeFieldCode(
    const ACHAR * pszFieldExpr, 
    ACHAR*& pszFieldCode, 
    const ACHAR * pszEvalId, 
    const ACHAR * pszFormat, 
    const AcHyperlink* pHyperlink
);

File

DbField.h

Description

This method formats field code using the specified components. The field expression can be a simple field name like Date or Filename, or a complex expression like a diesel expression. The hyperlink sublocation should be same as the one used for the AcDbHyperlink object.

Note

The pszFieldCode pointer is dynamically allocated. The caller is responsible for releasing its memory using acutDelString().

Returns Acad::eOk if successful.

Parameters

Parameters Description
pszFieldExpr Input field expression to format the field code
pszFieldCode Output reference to a character pointer to receive the formatted field code
pszEvalId Input evaluator ID; if null, the formatted field code will not have an evaluator ID
pszFormat Input format string; if null, the formatted field code will not have a format
pHyperlink Input hyperlink information which can be null if there is no hyperlink to be associated with the field

Was this information helpful?