API Reference > OdDb Classes > OdDbLinetypeTableRecord Class > OdDbLinetypeTableRecord Methods > OdDbLinetypeTableRecord::setShapeStyleAt Method
OdDbLinetypeTableRecord::setShapeStyleAt Method
Syntax
C++
void setShapeStyleAt(int dashIndex, OdDbObjectId idTextStyle);
Parameters 
Description 
int dashIndex 
[in] Dash index as an Integer value in range [0 <= dashIndex < numDashes].  
OdDbObjectId idTextStyle 
[in] Object ID of the text style record object to be set. 

Sets the Object ID associated with an instance of the text style record object (OdDbTextStyleTableRecord class) for the linetype dash at the specified index as the text style which specifies the characteristics of the shape inclusion inserted in in this linetype dash (DXF 340). The initial value is OdDb::kNull by default. 

 

When a dash does not have an inclusion, the text style property is not applicable. When the shape code is zero and the text string is an empty, the dash does not contain an inclusion and a text style is not used. When either the shape code is non-zero or the text string is non-empty, the text style property is applicable and must store the Object ID of an existing text style.

Example of Working with the Linetype Dash 

Working with the Linetype Pattern 

OdDbLinetypeTableRecord::shapeStyleAt() method

Copyright © 2002–2020. Open Design Alliance. All rights reserved.