Beispiel #1
0
        public static List <SurfaceWatershedLabel> GetSurfaceWatershedLabels(Autodesk.AutoCAD.DynamoNodes.Document document)
        {
            List <SurfaceWatershedLabel> retLabels = new List <SurfaceWatershedLabel>();

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

            return(retLabel);
        }
Beispiel #3
0
        public static SurfaceWatershedLabel ByIndex(Autodesk.AutoCAD.DynamoNodes.Document document, int index)
        {
            SurfaceWatershedLabel retLabel = new SurfaceWatershedLabel(DBObjectByIndex(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.SurfaceLabelStyles.WatershedLabelStyles, index), false);

            return(retLabel);
        }