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