|
POST
|
its a visual studio window accessible when u r running the debugger (see below). Sort modules on "Name". >>Should I try downgrading my nuget package to 6x? that sounds like it might do the trick
... View more
10-10-2023
03:05 PM
|
1
|
1
|
2603
|
|
POST
|
when I look at the loaded modules for Pro 3.1 on my machine it is using version 6.0.2223 (corresponding to, i assume, the currently supported .NET version for Pro 3x - .NET 6) and not v7.
... View more
10-10-2023
02:25 PM
|
0
|
1
|
2637
|
|
POST
|
Hi Brian, please down load the relevant .vsix's from the previous releases page: https://github.com/esri/arcgis-pro-sdk/#previous-versions Double-click to install
... View more
10-03-2023
08:21 AM
|
1
|
0
|
2758
|
|
POST
|
hi marco, can u try something like this: var lyr_params = new LayerCreationParams(....) {
ServiceCustomParameters = new Dictionary<string, string>(){
{"TOKENPROVIDERTYPE","1234567890abcdefgh...etc...."}
}
}; the dictionary can be any set of (string, string) key/value pairs fyi
... View more
09-19-2023
11:58 AM
|
0
|
3
|
2980
|
|
POST
|
not from the UI. At some point u have to go onto the QueuedTask. Once on the QueuedTask u can call ArcGISPortal IsSignedOn()
... View more
09-18-2023
01:15 PM
|
0
|
0
|
1663
|
|
POST
|
geometries are immutable. to convert 2d to 3d u will need a builder. In your specific example, you will need a PolygonBuilderEx . Note that is has a HasZ property which is get and set. There is also a constructor overload that takes a polyline as its input. Lots of examples here in the Geometry snippets. Ctrl-F "PolylineBuilderEx"
... View more
09-07-2023
10:49 AM
|
0
|
1
|
2107
|
|
POST
|
If u want to change the property from the UI just change the definition of your property in the view model to be get and set - and make sure the binding is Two-way (which is the default)...so delete out the binding mode stuff (in your xaml) that u added for one-way. u want something like this in the vm....anyway, keep whittling away at it - sounds like u r almost there 😉 internal class CustomControl1ViewModel : CustomControl {
//public bool IsSelectedPremium => Module1.Current.IsSelectedPremium;
public bool IsSelectedPremium {
get => Module1.Current.IsSelectedPremium;
set
{
if (value != Module1.Current.IsSelectedPremium)
{
Module1.Current.IsSelectedPremium = value;
NotifyPropertyChanged();
}
}
}
... View more
09-05-2023
01:42 PM
|
0
|
1
|
2591
|
|
POST
|
yes, sorry about that. the cast wont work. i forgot that the wrapper cannot be cast to the view model directly. The view model "itself" is held in an internal property. Change the code like so: internal class Module1 : Module {
//Add another property to your module for the custom control
public CustomControlViewModel1 CustomControlViewModel1 { get; set;}
internal class CustomControlViewModel1 : CustomControl {
//add a default ctor
public CustomControlViewModel1() {
//set it here in the ctor of your custom control vm
Module1.Current.CustomControlViewModel1 = this;
}
//call refresh on the module property - add a null check
//if CustomControlViewModel1 -is- null it means that it has not been
//instantiated yet - presumably because the ribbon tab it is sited on
//has never been activated in the session...in which case it does not
//need to be refreshed.
Module1.Current.CustomControlViewModel1?.Refresh();
... View more
09-05-2023
10:51 AM
|
0
|
1
|
2609
|
|
POST
|
move the backing properties to the Module. The module is accessible from anywhere in the addin. Add a "refresh" method to your custom control view model that fires the property notification. internal class Module1 : Module {
private static Module1 _this = null;
public bool IsSelectedPremium { get; set; }
internal class CustomControlViewModel1 : CustomControl {
public bool IsSelectedPremium => Module1.Current.IsSelectedPremium;
public void Refresh() {
NotifyPropertyChanged("IsSelectedPremium");
}
internal class SomeOtherClassElseWhereInTheAddin {
public void SetCheckboxes(bool loggedIn) {
Module1.Current.IsSelectedPremium = loggedIn;
var custom_control_vm =
FrameworkApplication.GetPlugInWrapper("Acme_Custom_Control1")
as CustomControlViewModel1;
custom_control_vm.Refresh();
}
... View more
09-05-2023
08:46 AM
|
0
|
1
|
2624
|
|
POST
|
The supported options for enabling/disabling editing are listed here: https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Editing#enable-and-disable-editing
... View more
09-05-2023
08:19 AM
|
0
|
0
|
1764
|
|
POST
|
unfortunately, it's a bug. Fixed in 3.1.2 and will be available in 3.2
... View more
08-29-2023
09:04 AM
|
0
|
1
|
1338
|
|
POST
|
i think that button is part of the built-in menu for the table view control. The daml button is just there for shortcut keys. It's not actually on any menus - at least as near as i can tell. The only entries I found for that id were in Editing.daml....note that there is no refID for that button in any menus/groups etc. - just the shortcut. <shortcut refID="esri_editing_table_tableCopySelectedRowsButton" key="C" flags="Ctrl+Shift" onKeyUp="false"/>
<button id="esri_editing_table_tableCopySelectedRowsButton" caption="Copy" extendedCaption="" className="esri_editing_EditingModule:TableManager.CopySelectedRows" smallImage="CopySelectedRows16" largeImage="CopySelectedRows32"
loadOnClick="false">
<tooltip heading="Copy Selection">
Copy selected rows to the clipboard.<disabledText></disabledText>
</tooltip>
</button>
... View more
08-18-2023
10:25 AM
|
0
|
0
|
1036
|
|
POST
|
>Maps are persisted in the project. Use the project instead of the view. take a look at: https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Content#get-all-mapprojectitems-for-a-projec... and https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Content#get-a-specific-mapprojectitem < so: internal class Module1 : Module {
protected override bool Initialize() {
ArcGIS.Desktop.Core.Events.ProjectOpenedEvent.Subscribe((args) => {
QueuedTask.Run(() => {
var map_item = Project.Current.GetItems<MapProjectItem>().First();
var map = map_item.GetMap();
var grp_layer = map.GetLayersAsFlattenedList()
.OfType<GroupLayer>().First();
map.RemoveLayer(grp_layer);
});
}); be sure to set your autoLoad to true in the config.daml <modules>
<insertModule id="..." className="..." autoLoad="true" caption="...">
... View more
08-08-2023
07:58 AM
|
0
|
1
|
3188
|
|
POST
|
string uri = @"C:\Local\Data\On\My\Disk\some_prj_tin"; var createParams = new ElevationLayerCreationParams(new Uri(uri)); etc, etc per the examples
... View more
08-03-2023
09:23 AM
|
1
|
1
|
1972
|
|
POST
|
tools can only have one sketch type. consider implementing a tool palette. This is how the Pro selection tool is implemented. Read: https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Palettes-and-Split-Buttons#how-to-declare-a-tool-palette Pro selection tool declaration: <!-- from ADmapping.daml -->
<toolPalette id="esri_mapping_selectToolPalette" itemsInRow="1" showItemCaption="true" caption="Select" extendedCaption="Open select tool palette" keytip="SE">
<tool refID="esri_mapping_selectByRectangleTool" />
<tool refID="esri_mapping_selectByPolygonTool" />
<tool refID="esri_mapping_selectByLassoTool" />
<tool refID="esri_mapping_selectByCircleTool" />
<tool refID="esri_mapping_selectByLineTool" />
<tool refID="esri_mapping_selectByTraceTool"/>
<tool refID="esri_mapping_selectByBoxTool" />
<tool refID="esri_mapping_selectBySphereTool"/>
<tool refID="esri_mapping_selectByCylinderTool"/>
</toolPalette>
... View more
08-02-2023
10:13 AM
|
0
|
1
|
2295
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-19-2026 10:29 AM | |
| 1 | 04-29-2026 02:06 PM | |
| 1 | 01-08-2026 02:03 PM | |
| 1 | 01-08-2026 02:15 PM | |
| 3 | 12-17-2025 11:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|