Share

setValue Method

Overload List

Method Description
AcDbTable::setValue (int, int, AcValue&) Sets the value of the first content of a cell.Returns Acad::eOk if successful or Acad::eInvalidInput if the input argument is invalid.
AcDbTable::setValue (int, int, int, AcValue&) Sets the value of the first content.Returns Acad::eOk if successful; otherwise, returns an AutoCAD error status.
AcDbTable::setValue (int, int, int, AcValue&, AcValue::ParseOption) Sets the value of the first content.Returns Acad::eOk if successful; otherwise, returns an AutoCAD error status.Only the following values of ParseOption enum are valid for this function. All the other options will be ignored.
  • kParseOptionNone: No option.
  • kPreserveMTextFormat: Preserves the current MText formatting code in the text if the current value and new value are texts.
AcDbTable::setValue (int, int, int, wchar_t*, AcValue::ParseOption) Sets the value of the first content.Returns Acad::eOk if successful; otherwise, returns an AutoCAD error status.Only the following values of ParseOption enum are valid for this function. All the other options will be ignored.
  • kParseOptionNone: No option.
  • kPreserveMTextFormat: Preserves the current MText formatting code in the text if the current value and new value are texts.
AcDbTable::setValue (int, int, wchar_t*, AcValue::ParseOption) Parses the specified text, converts it to a value of appropriate data type and sets it in the cell.If nOption is set to AcValue::kParseOptionNone it does default parsing. If it is AcValue::kSetDefaultFormat it sets a default format appropriate for the data type, in the value. If it is AcValue::kPreserveMTextFormat it uses the MText format code in the passed text if it is present.Returns Acad::eOk if successful or Acad::eInvalidInput if the input argument is invalid.

Was this information helpful?