Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbField::setFieldCode Method
Syntax
C++
OdResult setFieldCode(const OdString& fieldCode, OdDbField::FieldCodeFlag flags = (OdDbField::FieldCodeFlag) 0, OdDbFieldArray* pChildFields = 0);

Sets the field code of this Field object in the specified form. 

 

Parameters
Description
fieldCode
[in] Field code.
flags
[in] Field code flags.
pChildFields
[in] Pointer to an array of child fields.

Child fields are the embedded fields of text fields, and nested fields of non-text fields. 

flags must be a combination of one or more of the following: 

 

Name
Value
Description
kFieldCode
0x01
Returns the raw field code. Ignored.
kEvaluatedText
0x02
Returns the evaluated text. Ignored.
kEvaluatedChildren
0x04
Returns the field code with evaluated text for child fields. Ignored.
kObjectReference
0x08
Returns the field code as an object reference. Ignored.
kAddMarkers
0x10
Includes markers around field codes. Ignored.
kEscapeBackslash
0x20
Converts single backslashes to double backslashes. Ignored.
kStripOptions
0x40
Strips the standard options from the field code. Ignored.
kPreserveFields
0x80
Internal use only.
kTextField
0x100
Treats the field as text with embedded fields.
Copyright © 2002-2022. Open Design Alliance All rights reserved.