private ElementId GetAssociateLevelOf3DView(View3D view) { Schema threeDViewSchema = Schema.Lookup(Guids.THREE_D_VIEW_SHEMA_GUID); Entity threeDViewSchemaEnt = view.GetEntity(threeDViewSchema); ElementId levelId = threeDViewSchemaEnt.Get <ElementId>(threeDViewSchema.GetField("Level")); return(levelId); }