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

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

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

            return(retLabel);
        }