예제 #1
0
        public static List <CivilDynamoTools.LabelStyles.Alignments.Station.VerticalGeometryPointLabel> GetVerticalGeometryPointLabels(Autodesk.AutoCAD.DynamoNodes.Document document)
        {
            List <CivilDynamoTools.LabelStyles.Alignments.Station.VerticalGeometryPointLabel> retLabels = new List <CivilDynamoTools.LabelStyles.Alignments.Station.VerticalGeometryPointLabel>();

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

            return(retLabel);
        }