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

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

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

            return(retLabel);
        }