コード例 #1
0
        private ElementId GetAssociateLevelOfViewPlan(ViewPlan view)
        {
            Schema    ViewPlanSchema    = Schema.Lookup(Guids.VIEW_PLAN_SHEMA_GUID);
            Entity    ViewPlanSchemaEnt = view.GetEntity(ViewPlanSchema);
            ElementId levelId           = ViewPlanSchemaEnt.Get <ElementId>(ViewPlanSchema.GetField("Level"));

            return(levelId);
        }