|
POST
|
You can use this method to iterate through all add-ins and find your old add-ins, then use FullPath to delete the add-in (will disappear after ArcGIS Pro restarts): GetAddInInfos Method—ArcGIS Pro Needless to say, this only works if the user has permissions to delete the add-in. You can also look at this sample code which deletes add-ins: Esri/arcgis-pro-sdk-community-samples: ArcGIS Pro SDK for Microsoft .NET Framework Community Samples (github.com)
... View more
09-15-2022
08:57 AM
|
1
|
1
|
3045
|
|
POST
|
You can look at this example (from community samples) which is using the Microsoft.Data.SqlClient NuGet in its plug-in project: ProSqlExpressReader solution more specifically the 'Microsoft.Data.SqlClient' package reference in this project: arcgis-pro-sdk-community-samples/ProSqlExpressDb.csproj at master · Esri/arcgis-pro-sdk-community-samples (github.com) Also check here regarding SqlClient in .Net 6.0: Introducing the new Microsoft.Data.SqlClient - .NET Blog
... View more
09-09-2022
07:56 AM
|
0
|
1
|
1457
|
|
POST
|
Also, if you search for 'RadioButton' in our Pro SDK community samples you will find a few implementations that you can look at for example this solution is using RadioButton controls with code-behind: Esri/arcgis-pro-sdk-community-samples: ArcGIS Pro SDK for Microsoft .NET Framework Community Samples (github.com)
... View more
09-08-2022
08:23 AM
|
0
|
0
|
1336
|
|
POST
|
Also, if you search for 'CommandParameter' in our Pro SDK community samples you will find a few implementations that you can look at: Esri/arcgis-pro-sdk-community-samples: ArcGIS Pro SDK for Microsoft .NET Framework Community Samples (github.com)
... View more
09-08-2022
08:14 AM
|
0
|
1
|
8987
|
|
POST
|
You can scroll down through this answer: Solved: Detecting Selected Items (Layers) in a List Box vi... - Esri Community, I attached a sample solution to one of the replies that does the listbox with a 'checked' selections and a button to recall all selected (checked) items from the list. The sample is called DockpaneWithListCheckbox. I think there's a way to do it without the checkbox as well, it's a WPF question for which you can find a solution on the internet.
... View more
09-07-2022
04:38 PM
|
0
|
1
|
9015
|
|
POST
|
@TomGeo can you message me your 2.9 and 3.0 csproj files? I wrote the 3.0 Migration Vsix and I will take a look to see what is going on with your project migration. You can use the messages button to send me a private message with attachments, just zip and attach the two project files.
... View more
09-07-2022
09:39 AM
|
0
|
0
|
1198
|
|
POST
|
i am checking right now, but for sure your view model properties have to be declared as public properties: public bool RBStart
... View more
09-06-2022
04:36 PM
|
0
|
1
|
1648
|
|
POST
|
I suspect that you have a configuration mismatch on your development machine. Please check this: 1) look at the installation path for your 3.0.0.3656 release of ArcGIS Pro (by default this is "C:\Program Files\ArcGIS\Pro\bin\" 2) open your project file and check the paths for all Pro assembly references 3) the paths in the project file should match the installation path I tested the complete workflow that you described using your release versions, and everything worked as expected. It's possible that the name of the folder to which you want to add your gallery could be the issue. What folder and what name do you try to use when adding the gallery? Also were you able to build the project after the conversion to 3.0?
... View more
09-06-2022
01:41 PM
|
0
|
1
|
1210
|
|
POST
|
Here is a sample that implements a ProWindow using MVVM: Esri/arcgis-pro-sdk-community-samples: ArcGIS Pro SDK for Microsoft .NET Framework Community Samples (github.com)
... View more
09-01-2022
06:29 PM
|
1
|
1
|
1498
|
|
POST
|
There is a tool called the CIMViewer that you can download from here: Esri/arcgis-pro-sdk-cim-viewer (github.com) It's an add-in and a version for ArcGIS Pro 3.0 is available. I would recommend downloading and installing the CIM Viewer and set the tool options using the Manage Template dialog and then use CIM Viewer to view (and save) the CIM definition of your feature layer (modified using ArcGIS Pro). Then compare the CIM with the CIM generated by your add-in. There's probably some type of property that is not set by your program.
... View more
09-01-2022
04:45 PM
|
0
|
0
|
839
|
|
POST
|
Can you share your csproj files (you can attach those files in your reply) for both 2.x and 3.0, this will help me to find any problems. Also did you install and use the "ArcGIS Pro SDK for .Net Migration" Vsix? ProGuide Installation and Upgrade · Esri/arcgis-pro-sdk Wiki (github.com) ?
... View more
09-01-2022
02:43 PM
|
0
|
0
|
529
|
|
POST
|
You have two scenarios: 1) your add-in starts and the license is already timed out, hence you disable your add-in features 2) your add-in starts and the license will expire in x minutes after startup. Use the x minutes to setup your single timer event and when the event occurs you disable your add-in features.
... View more
08-25-2022
09:17 AM
|
0
|
0
|
1923
|
|
POST
|
That will work for sure, but as an optimization i would check the licensing only once at startup and return the time span left before the license expires. Using the returned timespan i would then set the duration for one single timer event. This is a bit more optimized compared to calling your license checking code every second. Using DispatchTimer as compared to Timer will work fine, it will ensure that your event code runs on the UI thread.
... View more
08-25-2022
08:35 AM
|
0
|
1
|
1932
|
|
POST
|
Understood. In the Module class startup just check how much time is left and set a timer event using the time left. When the time is up disable your state/condition for the UI. In the Module class you define the timer in the ctor i just one minute in my snippet: public Module1()
{
// set Timer ...
var timer = new System.Timers.Timer(60000); // set milliseconds delay
timer.Elapsed += Timer_Elapsed;
timer.Start();
//activates the state
FrameworkApplication.State.Activate(timerStateId);
}
private static string timerStateId = "timer_state";
private void Timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
if (FrameworkApplication.State.Contains(timerStateId))
{
//deactivates the state
FrameworkApplication.State.Deactivate(timerStateId);
}
else
{
//activates the state
FrameworkApplication.State.Activate(timerStateId);
}
} Define the state in config.daml under the conditions tag and add the condition attribute to your UI element like buttons, groups, tools: ...
</AddInInfo>
<conditions>
<!-- our custom condition -->
<insertCondition id="timer_state_condition" caption="Timer state">
<!-- our condition is set true or false based on this underlying state -->
<state id="timer_state" />
</insertCondition>
</conditions>
<modules>
...
<tool id="MapT..."
condition="timer_state_condition">
...
... View more
08-24-2022
10:29 AM
|
0
|
1
|
1961
|
|
POST
|
@RichardOxales thanks for pointing this out. I tried a few workarounds for this issue and the only one that i deem acceptable is using an embedded [overlay] control in the tool that does the mouse move tracking. However, the UI will look a bit different, but on the other hand is easier to read: There is no screen flashing (caused by delete/add of text graphics). I attached my sample code.
... View more
08-24-2022
10:22 AM
|
0
|
1
|
1235
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-07-2025 07:27 AM | |
| 2 | 3 weeks ago | |
| 1 | 07-30-2025 12:03 PM | |
| 1 | 10-06-2025 01:19 PM | |
| 1 | 10-06-2025 10:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|