How to add your knowledge

Creating a Label Style Object

    Table of contents
    No headers

    All types of annotation for AutoCAD Civil 3D elements are governed by label styles, which are objects of type LabelStyle. A label style can include any number of text labels, tick marks, lines, markers, and direction arrows.

    The following example creates a new label style object that can be used with points:

    CivilDocument doc = CivilApplication.ActiveDocument;
    ObjectId labelStyleId;
    labelStyleId = doc.Styles.LabelStyles.PointLabelStyles.LabelStyles.Add
        ("New Point Label Style");