ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / ExportBookmarks Method
The path to the BKMX file
Version

ExportBookmarks Method
Export bookmarks from the active map or scene to a BKMX file. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void ExportBookmarks( 
   string filePath
)

Parameters

filePath
The path to the BKMX file
Exceptions
ExceptionDescription
Current project is null.
Active map view is null.
Invalid map path.
path is a zero-length string, contains only white space, or contains one or more invalid characters as defined by InvalidPathChars.
path is null.
This method must be called within the lambda passed to QueuedTask.Run.
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).
An I/O error occurred while opening the file.
path specified a file that is read-only and access is not Read or path specified a directory or path specified a directory or the caller does not have the required permission. or mode is Create and the specified file is a hidden file.
mode, access, or share specified an invalid value.
The file specified in path was not found.
path is in an invalid format.
General export failure.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also