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