POST
|
Once a project is open, the application does not return to the "there is not a project open" state. That only occurs at start up. To "reset" a project/addin you would essentially have to open _another_ project and, from "that" project, re-open your desired one.
... View more
Thursday
|
0
|
0
|
6
|
POST
|
I am pretty sure a row cursor always returns records in object id order - i.e. in the order in which they are read from the underlying table.
... View more
Thursday
|
0
|
2
|
28
|
POST
|
sorry, guess that's what i get for typing something in to the chat from memory...it's "GetMapView". https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic22456.html
... View more
08-20-2025
10:12 AM
|
0
|
0
|
799
|
POST
|
Zoom To Map View takes the extent from the map u pick (on the Zoom to Map View dropdown) and applies it to the map view in the (selected) map frame. So something like var mv = mapFrame.GetActiveView(LayoutView.Active); mv.ZoomTo(whateverExtentYouWant);//Assuming 2D map and so forth
... View more
08-01-2025
10:56 AM
|
0
|
2
|
953
|
POST
|
additionally, to activate the GP pane, change your code to this: var pane = FrameworkApplication.DockPaneManager.Find("esri_geoprocessing_toolBoxes");
if (pane != null)
pane.Activate();//Show the GP dialog
//if (pane == null){MessageBox.Show("Geoprocessing Pane must be open to run tool");
//return;} if the pane is already activated it will be a no-op
... View more
07-02-2025
04:14 PM
|
0
|
0
|
189
|
POST
|
This has been added for 3.6. You will be able to write code similar to: var catalogWindow = Project.GetCatalogPane() as ICatalogWindow;
if (!catalogWindow.IsActiveWindow)
return;
var catContentType = catalogWindow.GetCurrentContentType();
if (catContentType != CatalogContentType.Portal)
{
//show the portal tab
catalogWindow.SetContentTypeAsync(CatalogContentType.Portal);
}
catalogWindow.SetSecondaryPortalContentTypeAsync(
CatalogSecondaryPortalContentType.UserOrganization);
... View more
07-02-2025
03:50 PM
|
1
|
0
|
252
|
POST
|
pre-process the string. i think "'" has to be escaped with another "'". var str = "This has an embedded ' in it";
var strEscaped = str.Replace("'", "''");
qf.WhereClause = $"......'{strEscaped}'";
... View more
05-01-2025
10:45 AM
|
3
|
0
|
394
|
POST
|
sounds like u need Geometry.Engine.Difference https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic8216.html
... View more
04-08-2025
11:25 AM
|
1
|
0
|
487
|
POST
|
Thanks for bringing it to our attention. We will add this at 3.6. U can set the order field via the CIM but I suspect the symbology UI could get out of sync, especially if it were open.
... View more
04-03-2025
03:38 PM
|
1
|
0
|
272
|
POST
|
there's a lot to unpack here. To reference any property or method on any class at compile time u must have a reference to the assembly that defines "that class" in your .csproj (unless u r using reflection which i assume u r not). Without a reference to "that" particular addin assembly in the "other" addin .csproj (which would be strange but there is nothing to prevent it) then references to classes or properties within it in your source code would never compile. If you _do_ add a reference to another addin assembly to your addin then the usual rules of .NET will apply - any objects sharing the same name within the scope of a given method or routine would end up needing to be fully-qualified to avoid naming collisions and the compiler will prompt u as such when u attempt to compile.. There is no concept of a "global variable" within Pro at runtime. U can, however, always access running instances of particular objects instantiated by the Framework via the various FrameworkApplication.FindModule, GetPluginWrapper, FrameworkApplication.DockPaneManager.Find(...) calls but u wld still need references to the various assemblies to reference public content (assuming u were not using reflection) unless they were defined on the base "Contract" classes they inherit from @RichardDaniels wrote: I've been developing several add-ins (6 at this count) and loading them into a custom tab. In a few cases I've taken one add-in and Forked it and to create a new add-in with similar functionality. Is there a risk doing this? For example: (1) if I have a public variable within one add-in, is it visible from other add-ins, (2) if I had a public class could another add-in access that class 'across' add-ins, and (3) if I had two public variables, or classes, in two add-ins with the same names could there be a Collision resulting in an error in one or more of the add-ins? Other way to ask this this, are add-ins thread safe containers?
... View more
03-20-2025
05:56 PM
|
1
|
1
|
453
|
POST
|
The fastest way is via a recycling rowcursor with specific fields identified in the SubFields clause. Using the ObjectIDs property rather than a where clause is, imo, more convenient and may be marginally faster. Your mileage may vary. A non-recycling row cursor will, of course, be slower. WRT Inspector - it is typically used with your UIs for purposes of editing - and comes with a built-in attribute grid [accessed via Inspector.CreateEmbeddableControl()] it populates for exactly that purpose. Data in the inspector is always read-write (unless restricted via a join or similar). Inspector will always automatically retrieve all attributes from a feature layer or feature class. Additionally, If loading data (from a feature layer) with joins, then all joined attribute values are loaded also. Inspector handles subtypes and domains and related default values. You can find more info/details here: https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Editing
... View more
02-27-2025
02:48 PM
|
0
|
1
|
664
|
POST
|
Going strictly off the error message, make you are returning a valid "System.Windows.Visibility" enum value from your converter....assuming u are referring to it somewhere in one of your bindings. Note, binding errors are also notorious for being red herrings....the issue cld simply be somewhere in your dockpane logic. namespace System.Windows { // // Summary: // Specifies the display state of an element. public enum Visibility : byte { // // Summary: // Display the element. Visible = 0, // // Summary: // Do not display the element, but reserve space for the element in layout. Hidden = 1, // // Summary: // Do not display the element, and do not reserve space for it in layout. Collapsed = 2 } }
... View more
02-12-2025
08:55 AM
|
0
|
0
|
291
|
POST
|
sorry, yes, i see that u did mention that in your description....am I understanding correctly that you want _two_ cursors? One is being used in "our application's stereo view" and the other, if such could be created, would be " a new tool cursor to mirror those mouse movements in Pro? - is that right? So, Im not entirely sure but I dont think multiple cursors is supported in Windows out of the box....u wld need a 3rd party solution I am thinking. I did a quick google on "can you have two cursors on one computer" but didnt get any concrete results...
... View more
01-15-2025
05:40 PM
|
0
|
1
|
947
|
POST
|
https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic24525.html 3.4 and 3.3
... View more
01-15-2025
02:05 PM
|
1
|
1
|
961
|
Title | Kudos | Posted |
---|---|---|
1 | Thursday | |
1 | 07-02-2025 03:50 PM | |
1 | 10-27-2022 10:32 PM | |
1 | 12-18-2023 05:07 PM | |
3 | 05-01-2025 10:45 AM |
Online Status |
Offline
|
Date Last Visited |
Thursday
|