예제 #1
0
        public static List <SVGradeLabel> GetSVGradeLabels(Autodesk.AutoCAD.DynamoNodes.Document document)
        {
            List <SVGradeLabel> retLabels = new List <SVGradeLabel>();

            foreach (DBObject dbObj in GetLabelStylesAsDBObjects(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.SectionViewLabelStyles.GradeLabelStyles))
            {
                SVGradeLabel labelObject = new SVGradeLabel(dbObj, false);
                retLabels.Add(labelObject);
            }
            return(retLabels);
        }
예제 #2
0
        public static SVGradeLabel ByName(Autodesk.AutoCAD.DynamoNodes.Document document, string labelStyleName)
        {
            SVGradeLabel retLabel = new SVGradeLabel(DBObjectByName(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.SectionViewLabelStyles.GradeLabelStyles, labelStyleName), false);

            return(retLabel);
        }
예제 #3
0
        public static SVGradeLabel ByIndex(Autodesk.AutoCAD.DynamoNodes.Document document, int index)
        {
            SVGradeLabel retLabel = new SVGradeLabel(DBObjectByIndex(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.SectionViewLabelStyles.GradeLabelStyles, index), false);

            return(retLabel);
        }