public static List <CivilDynamoTools.LabelStyles.Alignments.PointOfIntersectionLabel> GetPointOfIntersectionLabels(Autodesk.AutoCAD.DynamoNodes.Document document) { List <CivilDynamoTools.LabelStyles.Alignments.PointOfIntersectionLabel> retLabels = new List <CivilDynamoTools.LabelStyles.Alignments.PointOfIntersectionLabel>(); foreach (DBObject dbObj in GetLabelStylesAsDBObjects(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.AlignmentLabelStyles.PointOfIntersectionLabelStyles)) { PointOfIntersectionLabel labelObject = new PointOfIntersectionLabel(dbObj, false); retLabels.Add(labelObject); } return(retLabels); }
public static PointOfIntersectionLabel ByName(Autodesk.AutoCAD.DynamoNodes.Document document, string labelStyleName) { PointOfIntersectionLabel retLabel = new PointOfIntersectionLabel(DBObjectByName(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.AlignmentLabelStyles.PointOfIntersectionLabelStyles, labelStyleName), false); return(retLabel); }