ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / GeneralOptions Class / PortalProjectCustomDefaultToolbox Property
Example

In This Topic
    PortalProjectCustomDefaultToolbox Property
    In This Topic
    Gets and sets the default location for geoprocessing models created in the local copy. A toolbox stored in a geodatabase cannot be the default toolbox
    Syntax
    public string PortalProjectCustomDefaultToolbox {get; set;}
    Public Property PortalProjectCustomDefaultToolbox As String
    Example
    Portal Project Options
    // access the current options
    var def_home = ApplicationOptions.GeneralOptions.PortalProjectCustomHomeFolder;
    var def_gdb = ApplicationOptions.GeneralOptions.PortalProjectCustomDefaultGeodatabase;
    var def_tbx = ApplicationOptions.GeneralOptions.PortalProjectCustomDefaultToolbox;
    var deleteOnClose = ApplicationOptions.GeneralOptions.PortalProjectDeleteLocalCopyOnClose;
    var def_location = ApplicationOptions.GeneralOptions.PortalProjectDownloadLocation;
    
    
    // set the options
    ApplicationOptions.GeneralOptions.PortalProjectCustomHomeFolder = @"E:\data";
    ApplicationOptions.GeneralOptions.PortalProjectCustomDefaultGeodatabase = @"E:\data\usa.gdb";
    ApplicationOptions.GeneralOptions.PortalProjectCustomDefaultToolbox = @"E:\data\usa.tbx";
    ApplicationOptions.GeneralOptions.PortalProjectDeleteLocalCopyOnClose = false;
    ApplicationOptions.GeneralOptions.PortalProjectDownloadLocation = @"E:\data";
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also