Unblanking the Objects

Hi,

Below is code for Unblanking the objects, any one can use if required

'Modeling
theSession.DisplayManager.UnblankObjects(workPart.Arcs.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Axes.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Bodies.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.CoordinateSystems.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Curves.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Datums.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.FacetedBodies.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Lines.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Planes.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Points.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.RouteManager.Anchors.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Sketches.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Splines.ToArray())

'Assy
theSession.DisplayManager.UnblankObjects(workPart.ComponentAssembly.RootComponent.GetChildren())

'Drafting
theSession.DisplayManager.UnblankObjects(workPart.Annotations.Centerlines.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Annotations.Datums.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Annotations.DatumTargets.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Annotations.Fcfs.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Annotations.IdSymbols.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Annotations.Tables.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Annotations.TableSections.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Annotations.TargetPoints.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Annotations.Welds.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.DisplayedConstraints.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Drafting.SectionLines.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Dimensions.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Gdts.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Labels.ToArray())
theSession.DisplayManager.UnblankObjects(workPart.Notes.ToArray())