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