ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / ImportBookmarks Method
The path to the file

In This Topic
    ImportBookmarks Method
    In This Topic
    Import bookmarks from ArcMap, ArcGlobe, and ArcScene bookmark files (*.dat) or ArcGIS Pro bookmark files (*.bmkx). This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    filePath
    The path to the file

    Return Value

    The collection of bookmarks for the map.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Current project is null.
    Active map view is null.
    Invalid map path.
    Not supported file type.
    path is a zero-length string, contains only white space, or contains one or more invalid characters as defined by InvalidPathChars.
    path is null.
    The specified path, file name, or both exceed the system-defined maximum length.
    The specified path is invalid, (for example, it is on an unmapped drive).
    path specified a directory or the caller does not have the required permission.
    The file specified in path was not found.
    path is in an invalid format.
    An I/O error occurred while opening the file.
    General import failure.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also