-OPTIMIZE command
Corrects inaccurately-drawn entities.
                Description
Corrects inaccuracies in drawings, such as removing small gaps between lines and straightening lines that are nearly vertical or horizontal; works at the command line.
Note: This command operates only on lines; it does not
                    function with other entities, such as polylines and other open entities.
            
                                     
                                     | 
                                
                                    
  | 
                            
Options within the command
- change reference Angles
 - Specify the slopes of angles to straighten out:
 
- Horizontal lines
 - Straighten out nearly-horizontal lines (near 0 degrees).
 
- Vertical lines
 - Straighten out nearly-vertical lines (near 90 degrees).
 
- 45-Degree lines
 - Fix lines nearly at 45-degrees.
 
- All
 - Fix all lines.
 
- change Tolerances
 - Specify the maximum values for angles, distance, rounding and gaps.
 
- Specify angle tolerance
 - Sets the angle tolerance in degrees, with respect to the World Coordinate System (WCS).
 
- Specify distance tolerance
 - Sets the distance tolerance.
 
- Specify rounding tolerance
 - Sets the rounding tolerance.
 
- Specify gap tolerance
 - Sets the gap tolerance.
 
Note: Distance units are those specified by the INSUNITS
                    variable.
            - change closing Gap settings
 - Specify whether gaps should be closed or not.