Пример #1
0
        public static List <GradeBreakLabel> GetProfileLabels(Autodesk.AutoCAD.DynamoNodes.Document document)
        {
            List <GradeBreakLabel> retLabels = new List <GradeBreakLabel>();

            foreach (DBObject dbObj in GetLabelStylesAsDBObjects(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.ProfileLabelStyles.GradeBreakLabelStyles))
            {
                GradeBreakLabel labelObject = new GradeBreakLabel(dbObj, false);
                retLabels.Add(labelObject);
            }
            return(retLabels);
        }
Пример #2
0
        public static GradeBreakLabel ByName(Autodesk.AutoCAD.DynamoNodes.Document document, string labelStyleName)
        {
            GradeBreakLabel retLabel = new GradeBreakLabel(DBObjectByName(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.ProfileLabelStyles.GradeBreakLabelStyles, labelStyleName), false);

            return(retLabel);
        }
Пример #3
0
        public static GradeBreakLabel ByIndex(Autodesk.AutoCAD.DynamoNodes.Document document, int index)
        {
            GradeBreakLabel retLabel = new GradeBreakLabel(DBObjectByIndex(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.ProfileLabelStyles.GradeBreakLabelStyles, index), false);

            return(retLabel);
        }