# isSketchValid

True if the geometry builder contains sufficient points to show a valid graphical sketch, false otherwise. This can be used as an initial lightweight check to see if the current state of a builder produces a non-empty geometry. For example, it may be used to enable or disable functionality in an editing user interface. The exact requirements vary depending on the type of geometry produced by the builder:

A PointBuilder must contain non-NaN x,y coordinates

A MultipointBuilder must contain at least one valid Point

An EnvelopeBuilder must contain non-NaN minimum and maximum x,y coordinates

A PolylineBuilder must contain at least one MutablePart. Each MutablePart it contains must have:

At least two valid points, or

At least one Segment where Segment.isCurve is true

A PolygonBuilder must contain at least one MutablePart. Each MutablePart it contains must have:

At least three valid points, or

At least one Segment where Segment.isCurve is true

Note that this is not equivalent to topological simplicity, which is enforced by GeometryEngine.simplifyOrNull(Geometry) and checked using GeometryEngine.isSimple(Geometry). Geometries must be topologically simple to be successfully saved in a geodatabase or used in some service operations.

It does not check the spatial reference and returns false if an error occurs.

#### Since

200.1.0