public static List <SVGradeLabel> GetSVGradeLabels(Autodesk.AutoCAD.DynamoNodes.Document document) { List <SVGradeLabel> retLabels = new List <SVGradeLabel>(); foreach (DBObject dbObj in GetLabelStylesAsDBObjects(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.SectionViewLabelStyles.GradeLabelStyles)) { SVGradeLabel labelObject = new SVGradeLabel(dbObj, false); retLabels.Add(labelObject); } return(retLabels); }
public static SVGradeLabel ByName(Autodesk.AutoCAD.DynamoNodes.Document document, string labelStyleName) { SVGradeLabel retLabel = new SVGradeLabel(DBObjectByName(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.SectionViewLabelStyles.GradeLabelStyles, labelStyleName), false); return(retLabel); }
public static SVGradeLabel ByIndex(Autodesk.AutoCAD.DynamoNodes.Document document, int index) { SVGradeLabel retLabel = new SVGradeLabel(DBObjectByIndex(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.SectionViewLabelStyles.GradeLabelStyles, index), false); return(retLabel); }