Ejemplo n.º 1
0
        public static List <ProfileCurveLabel> GetProfileLabels(Autodesk.AutoCAD.DynamoNodes.Document document)
        {
            List <ProfileCurveLabel> retLabels = new List <ProfileCurveLabel>();

            foreach (DBObject dbObj in GetLabelStylesAsDBObjects(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.ProfileLabelStyles.CurveLabelStyles))
            {
                ProfileCurveLabel labelObject = new ProfileCurveLabel(dbObj, false);
                retLabels.Add(labelObject);
            }
            return(retLabels);
        }
Ejemplo n.º 2
0
        public static ProfileCurveLabel ByName(Autodesk.AutoCAD.DynamoNodes.Document document, string labelStyleName)
        {
            ProfileCurveLabel retLabel = new ProfileCurveLabel(DBObjectByName(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.ProfileLabelStyles.CurveLabelStyles, labelStyleName), false);

            return(retLabel);
        }
Ejemplo n.º 3
0
        public static ProfileCurveLabel ByIndex(Autodesk.AutoCAD.DynamoNodes.Document document, int index)
        {
            ProfileCurveLabel retLabel = new ProfileCurveLabel(DBObjectByIndex(document, CivilDocument.GetCivilDocument(document.AcDocument.Database).Styles.LabelStyles.ProfileLabelStyles.CurveLabelStyles, index), false);

            return(retLabel);
        }