POST
|
The Pro.settingsConfig is not actually used with an Add-In, rather it sets default behavior for ArcGIS Pro on startup. The config file is just a human readable text file. The easiest way to point to this is to add the ADMIN_SETTINGS_PATH command line parameter during an ArcGIS Pro silent installation, The second way to configure client machines is by editing the Windows Registry. Use this option if ArcGIS Pro is already deployed or if you don't want to do a silent installation. To configure the client machines, create a string value called AdminSettingsPath in HKEY_LOCAL_MACHINE\SOFTWARE\ESRI\ArcGISPro\Settings. Set the value data to the path of the network share or local folder that contains the deployed Pro.settingsConfig file. Some XML Tags you could include in your config file are shown at https://pro.arcgis.com/en/pro-app/latest/get-started/administrator-settings-list.htm Have you considered revising how your Add-In works to take advantage of a Tabbed Interface?
... View more
08-15-2023
10:56 AM
|
0
|
1
|
409
|
POST
|
I think this is what you are looking for: Manage application settings—ArcGIS Pro | Documentation There are three basic steps to control application settings in your ArcGIS Pro deployment: Author a Pro.settingsConfig file. Post the file to a directory or share accessible by users. Configure the user machines to use the deployed file.
... View more
08-14-2023
12:42 PM
|
0
|
3
|
494
|
POST
|
The Field Calculator is does its work outside an edit session, so if your are dependent on an 'edit session' existing then those changes would not be caught.
... View more
07-18-2023
10:52 AM
|
0
|
0
|
389
|
POST
|
If you have a ArcGIS Developer Subscription or access to My.esri.com via a Subscription (and our Primary ESRI contact enabled it) you should be able to click the Download button and download the MIS, ISO, etc. file. There is an option or order an actual thumb drive with the installers as well, but you have to Request this, it is no longer sent automatically to ESRI customers.
... View more
07-03-2023
08:54 AM
|
0
|
0
|
353
|
POST
|
you may be looking for C:\Program Files\ArcGIS\Pro\Resources\ProjectTemplates
... View more
06-28-2023
02:24 PM
|
0
|
1
|
318
|
POST
|
Simplest is to realize that 'deprecated' just means it may not work in ArcGIS 3.2, which will not be out till 2025 or so.
... View more
06-26-2023
08:33 AM
|
0
|
0
|
393
|
POST
|
Suggest you place the code on a network share drive, thus you don't have to deploy the python code to every machine. Then the path would be \\myserver\mypythongcode\thecode.py
... View more
06-22-2023
01:01 PM
|
0
|
1
|
291
|
POST
|
Is there an installer for Data Reviewer for ArcGIS Pro 3.1? Nothing is listed in the download center for this extension.
... View more
06-20-2023
04:09 PM
|
0
|
3
|
782
|
IDEA
|
Here is the message from ArcGIS Pro 3.1.1 which references Microsoft.NETCore.App
... View more
05-12-2023
03:05 PM
|
0
|
0
|
1283
|
IDEA
|
ArcGIS Pro 3.1 requires 6.0.5 or Higher. We installed Windows Desktop Runtime 6.0.x (was 13 now 16) which does not work and is. We have also tried the pure Microsoft .Net Runtime (x64) which does not resolve the issue. Recall, most end users do not have permissions to Install .Net Framework themselves. Your documentation needs to use the Exact given the wide array of options at Download .NET 6.0 (Linux, macOS, and Windows) (microsoft.com)<>.
... View more
05-11-2023
02:00 PM
|
0
|
0
|
1362
|
IDEA
|
ArcGIS Pro 3 requires .Net Framework 6.0 (64 bit) but there are MANY versions available. ESRI also specifies that a Windows Installer must be used (why?). It appears the installer that most would use, Microsoft Windows Desktop Runtime 6.0.x is not enough to get ArcGIS Pro to work. One actually needs Download ASP.NET Core 6.0 Runtime (v6.0.16) - Windows x64 Installer (microsoft.com) as well. The fact that a user even has to do hit or miss research is 'BAD' Please update help documents with explicit software requirements vs. just saying 'Net Framework 6.0 is required'. Thank you,
... View more
05-11-2023
12:27 PM
|
0
|
5
|
1388
|
POST
|
Sounds like you are using some internal project bar related to the tool you are running, vs. one you wrote yourself. When you need full control of the bar use a System.Windows.Forms.ProgressBar on a WinForm . For example, here I'm loading a database into memory within an ArcGIS Pro addin. [cid:image001.png@01D98250.8426CC30] Code behind looks similar to this. private Form myProgressBar; public void LoadDatabase (SqlDataReader theDataSource) { if (myProgressBar==null) { myProgressBar = new wsdotCode.frmProgress(); } System.Windows.Forms.ProgressBar pbar; pbar = myProgressBar.Controls.Find("progressBar1", true).FirstOrDefault() as System.Windows.Forms.ProgressBar; pbar.Value = 0; myProgressBar.Show(); //increment the progress bar and read data While not EOF(theDataSource) { LoadRow(theDataSource) progressUpdate(pbar); } myProgressBar.Close(); } private void progressUpdate(System.Windows.Forms.ProgressBar myBar) { //step size is set in the designer myBar.PerformStep(); myBar.Refresh(); myBar.Parent.Refresh(); if (myBar.Value >= 100) { System.Threading.Thread.Sleep(200); } else { System.Threading.Thread.Sleep(100); } }
... View more
05-09-2023
08:45 AM
|
0
|
0
|
347
|
POST
|
An add-in built to run under ArcGIS Pro does require the targeted desktop software to be loaded on the build machine. Since the software never 'starts' on the build machine you would never need to point it to a license server, single use license, or ArcGIS online organization named user account. If Pro is started it would open to the 'licensing' screen and give you an opportunity to enter credentials or the license server name. Thus you can actually validate that the installer 'worked' without a license as well.
... View more
05-02-2023
09:21 AM
|
1
|
0
|
528
|
POST
|
The aptx file is usually loaded into the Pro as a projec, use the layout template for a map layout. You can use code to use the 'current active map' as the primary may shown in the newly created layout template. Recall templates can have 'tags' for text items, this means you can search for them an replace the text as well (e.g., in this example we have map layout template with Title1, subtitle1, Title2, subtitle2, etc. tags that get populated form a form) prior to executing the LoadLayoutTemplate sub. internal static void LoadLayoutTemplate(string myMapTemplatePath, string lytTitle1, string lytTitle2, string lytSubTitle1, string lytSubTitle2, string lytDateInfo, string lytDataSource, Map lytMap, Envelope lytEnvelope) { // Load WSDOT Layout templates, added as a Tool at ArcGIS Pro 2.9. try { IProjectItem myItem = ItemFactory.Instance.Create(@myMapTemplatePath, ItemFactory.ItemType.PathItem) as IProjectItem; IProjectMultiItem myMultiItem = myItem as IProjectMultiItem; LoadNewLayoutItem(myMultiItem, lytTitle1, lytTitle2, lytSubTitle1, lytSubTitle2, lytDateInfo, lytDataSource, lytMap, lytEnvelope); } catch (Exception eX) { ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Unable to Load requested Layout template ( internal static void LoadLayoutTemplate(string myMapTemplatePath, string lytTitle1, string lytTitle2, string lytSubTitle1, string lytSubTitle2, string lytDateInfo, string lytDataSource, Map lytMap, Envelope lytEnvelope) { // Load WSDOT Layout templates, added as a Tool at ArcGIS Pro 2.6. try { IProjectItem myItem = ItemFactory.Instance.Create(@myMapTemplatePath, ItemFactory.ItemType.PathItem) as IProjectItem; IProjectMultiItem myMultiItem = myItem as IProjectMultiItem; LoadNewLayoutItem(myMultiItem, lytTitle1, lytTitle2, lytSubTitle1, lytSubTitle2, lytDateInfo, lytDataSource, lytMap, lytEnvelope); } catch (Exception eX) { ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Unable to Load requested Layout template (pagx). " + eX.ToString(),"Information",0); } } public async static void LoadNewLayoutItem(IProjectMultiItem theItem, string lytTitle1, string lytTitle2, string lytSubTitle1, string lytSubTitle2, string lytDateInfo, string lytDataSource, Map lytMap, Envelope lytEnvelope) { //add the newly project item to the current project; must be public to avoid threading errors! try { //add the layout to the project and wait for import to complete await QueuedTask.Run(() => Project.Current.ImportItem(theItem, true)); //wait 1 econdto ensure we are Ready await Task.Delay(1000); // Reference the new active layout in the project LayoutView lytView = LayoutView.Active; if (lytView != null) { await QueuedTask.Run(() => { Layout myLayout = lytView.Layout; // set the text elements based on values passed from frmLayouts // help at https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/index.html#topic11176.html // https://github.com/Esri/arcgis-pro-sdk/blob/master/Examples/Layouts/MethodSnippets.cs TextElement txtTitles = myLayout.FindElement("Title1") as TextElement; if (txtTitles != null) { TextProperties txtProp = new TextProperties(lytTitle1, txtTitles.TextProperties.Font, txtTitles.TextProperties.FontSize, txtTitles.TextProperties.FontStyle); txtTitles.SetTextProperties(txtProp); } txtTitles = myLayout.FindElement("Title2") as TextElement; if (txtTitles != null) { TextProperties txtProp = new TextProperties(lytTitle2, txtTitles.TextProperties.Font, txtTitles.TextProperties.FontSize, txtTitles.TextProperties.FontStyle); txtTitles.SetTextProperties(txtProp); } txtTitles = myLayout.FindElement("SubTitle1") as TextElement; if (txtTitles != null) { TextProperties txtProp = new TextProperties(lytSubTitle1, txtTitles.TextProperties.Font, txtTitles.TextProperties.FontSize, txtTitles.TextProperties.FontStyle); txtTitles.SetTextProperties(txtProp); } txtTitles = myLayout.FindElement("SubTitle2") as TextElement; if (txtTitles != null) { TextProperties txtProp = new TextProperties(lytSubTitle2, txtTitles.TextProperties.Font, txtTitles.TextProperties.FontSize, txtTitles.TextProperties.FontStyle); txtTitles.SetTextProperties(txtProp); } txtTitles = myLayout.FindElement("DateInfo") as TextElement; if (txtTitles != null) { TextProperties txtProp = new TextProperties(lytDateInfo, txtTitles.TextProperties.Font, txtTitles.TextProperties.FontSize, txtTitles.TextProperties.FontStyle); txtTitles.SetTextProperties(txtProp); } txtTitles = myLayout.FindElement("DataSource") as TextElement; if (txtTitles != null) { TextProperties txtProp = new TextProperties(lytDataSource, txtTitles.TextProperties.Font, txtTitles.TextProperties.FontSize, txtTitles.TextProperties.FontStyle); txtTitles.SetTextProperties(txtProp); } MapFrame frameMap = myLayout.FindElement("Layers Map Frame") as MapFrame; if (frameMap != null) { //Update the MapFrame to use the Map that was active when the tool was run; set layout map element envelope based on the active map (added 1/28/2022) if (lytMap != null) { frameMap.SetMap(lytMap); frameMap.SetCamera(lytEnvelope); } } }); } } catch (Exception eX) { //do nothing ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("System Error: " + eX.ToString(), "Error",0); } } ). " + eX.ToString(),"Information",0); } } public async static void LoadNewLayoutItem(IProjectMultiItem theItem, string lytTitle1, string lytTitle2, string lytSubTitle1, string lytSubTitle2, string lytDateInfo, string lytDataSource, Map lytMap, Envelope lytEnvelope) { //add the newly project item to the current project; must be public to avoid threading errors! try { //add the layout to the project and wait for import to complete await QueuedTask.Run(() => Project.Current.ImportItem(theItem, true)); //wait 1 econdto ensure we are Ready await Task.Delay(1000); // Reference the new active layout in the project LayoutView lytView = LayoutView.Active; if (lytView != null) { await QueuedTask.Run(() => { Layout myLayout = lytView.Layout; // set the text elements based on values passed from frmLayouts // help at https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/index.html#topic11176.html // https://github.com/Esri/arcgis-pro-sdk/blob/master/Examples/Layouts/MethodSnippets.cs TextElement txtTitles = myLayout.FindElement("Title1") as TextElement; if (txtTitles != null) { TextProperties txtProp = new TextProperties(lytTitle1, txtTitles.TextProperties.Font, txtTitles.TextProperties.FontSize, txtTitles.TextProperties.FontStyle); txtTitles.SetTextProperties(txtProp); } txtTitles = myLayout.FindElement("Title2") as TextElement; if (txtTitles != null) { TextProperties txtProp = new TextProperties(lytTitle2, txtTitles.TextProperties.Font, txtTitles.TextProperties.FontSize, txtTitles.TextProperties.FontStyle); txtTitles.SetTextProperties(txtProp); } txtTitles = myLayout.FindElement("SubTitle1") as TextElement; if (txtTitles != null) { TextProperties txtProp = new TextProperties(lytSubTitle1, txtTitles.TextProperties.Font, txtTitles.TextProperties.FontSize, txtTitles.TextProperties.FontStyle); txtTitles.SetTextProperties(txtProp); } txtTitles = myLayout.FindElement("SubTitle2") as TextElement; if (txtTitles != null) { TextProperties txtProp = new TextProperties(lytSubTitle2, txtTitles.TextProperties.Font, txtTitles.TextProperties.FontSize, txtTitles.TextProperties.FontStyle); txtTitles.SetTextProperties(txtProp); } txtTitles = myLayout.FindElement("DateInfo") as TextElement; if (txtTitles != null) { TextProperties txtProp = new TextProperties(lytDateInfo, txtTitles.TextProperties.Font, txtTitles.TextProperties.FontSize, txtTitles.TextProperties.FontStyle); txtTitles.SetTextProperties(txtProp); } txtTitles = myLayout.FindElement("DataSource") as TextElement; if (txtTitles != null) { TextProperties txtProp = new TextProperties(lytDataSource, txtTitles.TextProperties.Font, txtTitles.TextProperties.FontSize, txtTitles.TextProperties.FontStyle); txtTitles.SetTextProperties(txtProp); } MapFrame frameMap = myLayout.FindElement("Layers Map Frame") as MapFrame; if (frameMap != null) { //Update the MapFrame to use the Map that was active when the tool was run; set layout map element envelope based on the active map (added 1/28/2022) if (lytMap != null) { frameMap.SetMap(lytMap); frameMap.SetCamera(lytEnvelope); } } }); } } catch (Exception eX) { //do nothing ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("System Error: " + eX.ToString(), "Error",0); } }
... View more
04-24-2023
11:32 AM
|
0
|
0
|
166
|
POST
|
The desktopVersion is the lowest Pro version you would like to support in your Add-In.
... View more
04-18-2023
02:04 PM
|
0
|
0
|
510
|
Title | Kudos | Posted |
---|---|---|
1 | 3 weeks ago | |
1 | 3 weeks ago | |
1 | 3 weeks ago | |
1 | 12-18-2023 03:59 PM | |
1 | 11-17-2023 06:42 AM |
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|