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

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

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

            return(retLabel);
        }