def to_shapefile(self, filename, package_names=None, **kwargs):
    '\n        Wrapper function for writing a shapefile for the model grid.  If\n        package_names is not None, then search through the requested packages\n        looking for arrays that can be added to the shapefile as attributes\n\n        Parameters\n        ----------\n        filename : string\n            name of the shapefile to write\n        package_names : list of package names (e.g. ["dis","lpf"])\n            Packages to export data arrays to shapefile. (default is None)\n\n        Returns\n        -------\n        None\n\n        Examples\n        --------\n        >>> import flopy\n        >>> m = flopy.modflow.Modflow()\n        >>> m.to_shapefile(\'model.shp\', SelPackList)\n\n        '
    warnings.warn('to_shapefile() is deprecated. use .export()')
    self.export(filename, package_names=package_names)
    return
Wrapper function for writing a shapefile for the model grid.  If
package_names is not None, then search through the requested packages
looking for arrays that can be added to the shapefile as attributes

Parameters
----------
filename : string
    name of the shapefile to write
package_names : list of package names (e.g. ["dis","lpf"])
    Packages to export data arrays to shapefile. (default is None)

Returns
-------
None

Examples
--------
>>> import flopy
>>> m = flopy.modflow.Modflow()
>>> m.to_shapefile('model.shp', SelPackList)
def to_shapefile(self, filename, package_names=None, **kwargs):
    '\n        Wrapper function for writing a shapefile for the model grid.  If\n        package_names is not None, then search through the requested packages\n        looking for arrays that can be added to the shapefile as attributes\n\n        Parameters\n        ----------\n        filename : string\n            name of the shapefile to write\n        package_names : list of package names (e.g. ["dis","lpf"])\n            Packages to export data arrays to shapefile. (default is None)\n\n        Returns\n        -------\n        None\n\n        Examples\n        --------\n        >>> import flopy\n        >>> m = flopy.modflow.Modflow()\n        >>> m.to_shapefile(\'model.shp\', SelPackList)\n\n        '
    warnings.warn('to_shapefile() is deprecated. use .export()')
    self.export(filename, package_names=package_names)
    return