Share

AcDbObject::setField

C++

virtual ACDBCORE2D_PORT Acad::ErrorStatus setField(
    const ACHAR* pszPropName, 
    AcDbField* pField, 
    AcDbObjectId& fieldId
);

Description

A field can be stored in an object using the property name as the key. The object should be in database for this function to succeed. If the field is not yet posted to the database, it will be posted to the database. If the field is already in database, it should be opened for write. After calling this method, the field object must be closed.

Returns Acad::eOk if successful. Otherwise, returns an AutoCAD error status.

Parameters

Parameters Description
pszPropName Input property name for which to set the field
pField Input field to set
fieldId Output reference to receive the field ID

Links

AcDbObject

Was this information helpful?