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); }