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