Example #1
0
        public static List <GeneralShapeLabel> GetGeneralShapeLabels(Autodesk.AutoCAD.DynamoNodes.Document document)
        {
            List <GeneralShapeLabel> retLabels = new List <GeneralShapeLabel>();

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

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

            return(retLabel);
        }