Share

toAcDbTextStyle

C++

Acad::ErrorStatus toAcDbTextStyle(
    AcGiTextStyle&, 
    const ACHAR * AcDbStyleName, 
    AcDbObjectId& AcDbStyleId
);

File

acgiutil.h

Description

This function will attempt to find and open an AcDbTextStyleTableRecord with the name contained in AcDbStyleName. If no such record is found, then a new AcDbTextStyleTableRecord will be created and added to the drawing currently in the AutoCAD editor. Once a valid AcDbTextStyleTableRecord is in hand, then the style information from the AcGiTextStylestyle will be copied into it.

The AcDbStyleId argument is set to the objectId of the AcDbTextStyleTableRecord object that is used.

Returns Acad::eOk if successful. Other return values are those that would be returned by a failure to open or create the AcDbTextStyleTableRecord.

Parameters

Parameters Description
AcDbStyleName Input name of the AcDbTextStyleTableRecord to which the information will be copied
AcDbStyleId Returns with the objectId of the AcDbTextStyleTableRecord to which the information was written
unnamed Input AcGiTextStyle object from which to copy

Was this information helpful?