コード例 #1
0
        public static List <ViewFrameLabel> GetViewFrameLabels(Autodesk.AutoCAD.DynamoNodes.Document document)
        {
            List <ViewFrameLabel> retLabels = new List <ViewFrameLabel>();

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

            return(retLabel);
        }
コード例 #3
0
        public static ViewFrameLabel ByIndex(Autodesk.AutoCAD.DynamoNodes.Document document, int index)
        {
            ViewFrameLabel retLabel = new ViewFrameLabel(DBObjectByIndex(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.ViewFrameLabelStyles.LabelStyles, index), false);

            return(retLabel);
        }