|
POST
|
Before release 3.0 you have to use the 'Create Relationship Class' Geoprocessing Tool in order to create a relationship class. Since it's somewhat difficult to figure out the parameters to run a GP Tool you can follow the steps outlined in the slides for the 2023 Demo theater session (download) 'How to Run GP Tools from Your Add-in' here: Tech Sessions · ArcGIS/arcgis-pro-sdk Wiki (github.com)
... View more
07-03-2023
01:34 PM
|
0
|
1
|
1292
|
|
POST
|
You can download the ArcGIS Pro Migration vsix (Visual Studio Extension) here: ArcGIS Pro SDK for .NET (Migration) - Visual Studio Marketplace and copy the vsix onto the off-line system. Double click on the vsix file to install the extension.
... View more
07-03-2023
11:09 AM
|
0
|
0
|
914
|
|
POST
|
I just now noticed that the method you were using has been misspelled in its original version. The correct method name is: GetSelectedObjectIds The method you found as obsolete has the letter 'c' missing in Selected. Apparently, the author of TableControl corrected the spelling and marked the originally misspelled variant as obsolete. So you should be fine if you use the 'GetSelectedObjectIds ' variant. Sorry about that.
... View more
06-30-2023
07:33 AM
|
0
|
0
|
1104
|
|
POST
|
You can surround the creation of the PluginDatastore by try ... catch as it is implemented here: arcgis-pro-sdk-community-samples/Plugin/SimplePointPluginTest/TestCsv2.cs at master · Esri/arcgis-pro-sdk-community-samples · GitHub In essence you need this try
{
// you must use await in order to catch any exceptions in the new thread
await QueuedTask.Run(() =>
{
using (var pluginws = new PluginDatastore(...))
{
using (var table = pluginws.OpenTable(table_name))
{
}
}
});
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
} you could also check Pro's AssemblyCache folder for the Guided folder of the Plugin, but that's a bit more involved. Either way there shouldn't be a crash.
... View more
06-28-2023
11:57 AM
|
0
|
0
|
802
|
|
POST
|
You can persist custom project or application settings as shown here: ProGuide Custom settings · Esri/arcgis-pro-sdk Wiki (github.com)
... View more
06-28-2023
09:06 AM
|
0
|
0
|
1092
|
|
POST
|
I tried 2.9.5 to see if there are any release related issues, but my test Configuration works fine on my test machine. I assume that if you run the command line without the config parameter it works as expected and ArcGIS Pro starts up. If i delete the Configuration from my folder: C:\Users\<user>\AppData\Local\ESRI\ArcGISPro\AssemblyCache\{AddInInfo_Id_guid} and then run ArcGIS Pro with my configuration (this is from a command line window): "C:\Program Files\ArcGIS\Pro\bin\ArcGISPro.exe" /config:"MyConfig" then ArcGIS Pro starts without the configuration. This is expected. For some reason in your case ArcGIS Pro doesn't start. I suspect that your ArcGISPro.exe file location is not accessible. My shortcut looks like this: You notice that the shortcut icon is the ArcGIS Pro icon, in your screenshot there's an empty link, meaning the .exe or parts thereof are not accessible. I would try this: under the logged in user (who has the problem), open a command line, copy the 'Target' field from your shortcut window into the command line window and run the command from there. if that works make a new shortcut using the command line from the command line window. If that doesn't work, check user permissions and the Pro installation location.
... View more
06-27-2023
11:03 AM
|
0
|
1
|
1542
|
|
POST
|
i will try this tomorrow, but it looks like line 22 has a syntax error. Maybe you fixed that already.
... View more
06-26-2023
04:51 PM
|
0
|
0
|
1696
|
|
POST
|
This is an ArcObjects question. You can try to ask your question here: ArcObjects SDK Questions - Esri Community I hope you are aware of the ArcObjects SDK life cycle: ArcGIS Objects Life Cycle | Esri Support and the fact that "ArcGIS 10.9.1 is the last release to ship ArcObjects SDK for the Microsoft .NET Framework."
... View more
06-26-2023
02:44 PM
|
0
|
0
|
611
|
|
POST
|
You might have already done this, but there is a utility called CIM Viewer that you can download from GitHub and builder: GitHub - Esri/arcgis-pro-sdk-cim-viewer using the CIM Viewer you can then examine the CIMGroupElement in order to come up with a programmatic approach: Using the objects that i discovered using the CIMViewer i build the following code snippet that gets the CIM Group's graphic frame and changes the width and the color of the group's frame (name MyGroup). internal class ChangeGroupElement : Button
{
private static CIMColor Red = new CIMRGBColor
{
R = 255,
G = 0,
B = 0,
Alpha = 100// 0 for transparent and 100 for opaque
};
private static CIMColor Black = new CIMRGBColor
{
R = 0,
G = 0,
B = 0,
Alpha = 100// 0 for transparent and 100 for opaque
};
protected override async void OnClick()
{
// Find 'MyGroup' and make changes
var layout = LayoutView.Active?.Layout;
if (layout == null)
{
MessageBox.Show("No active layout view");
return;
}
var grp = layout.FindElement("MyGroup");
if (grp == null)
{
MessageBox.Show("MyGroup not found");
return;
}
try
{
await QueuedTask.Run(() =>
{
var cimGrp = grp.GetDefinition() as CIMGroupElement;
if (cimGrp != null)
{
// check the graphic frame (see CIMViewer)
if (cimGrp.GraphicFrame != null)
{
// get the border symbol in the graphic frame
var borderSym = cimGrp.GraphicFrame.BorderSymbol as CIMSymbolReference;
if (borderSym != null && borderSym.Symbol != null)
{
// the border symbol is comprised of SymbolLayers
// ... change the first SymbolLayer which is a CIMSolidStroke
var symbol = borderSym.Symbol as CIMLineSymbol;
if (symbol.SymbolLayers != null)
{
var solidStroke = symbol.SymbolLayers.OfType<CIMSolidStroke>().FirstOrDefault();
if (solidStroke != null)
{
var width = solidStroke.Width + 1;
solidStroke.Color = width % 2 == 0 ? Red : Black;
solidStroke.Width = width;
}
}
}
}
grp.SetDefinition(cimGrp);
}
});
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
}
... View more
06-06-2023
10:05 AM
|
1
|
0
|
1011
|
|
POST
|
@BrianBulla When you call Process.Start () you have to change the defaults in ProcessStartInfo: Process.Start(new ProcessStartInfo
{
FileName = @"https://www.google.com/maps/@21.9000254,-159.5609088,3a,75y,15.95h,90t/data=!3m8!1e1!3m6!1sAF1QipMDaTpcy-_W_IIFOf9S5lc4L_nUhtu9nZ0H93Cm!2e10!3e11!6shttps:%2F%2Flh5.googleusercontent.com%2Fp%2FAF1QipMDaTpcy-_W_IIFOf9S5lc4L_nUhtu9nZ0H93Cm%3Dw203-h100-k-no-pi-8.217636-ya202.37381-ro0-fo100!7i6912!8i3456?entry=ttu",
UseShellExecute = true
}); The snippet worked for me. I am not using a ProWindow with a web viewer 😉 If you don't use the ShellExecute option the default browser will only start if you give an html path.
... View more
06-01-2023
01:49 PM
|
1
|
0
|
1861
|
|
POST
|
Understood, in my example i set the attribute isChecked="true" in my config.daml definition of the checkBox to true. That initializes my checkBox on the screen to 'Checked' when i start Pro. But you are correct the code-behind doesn't get called until JIT (Just In Time) triggers loading and the execution of the code. So @LSCGIS would have to set isChecked to true in the DAML and also initialize ModuleSAM.Current.IsSimplify to 'true' to keep the checkbox and the property in sync. If this the case then the loadOnClick value is irrelevant.
... View more
05-31-2023
02:53 PM
|
0
|
1
|
1235
|
|
POST
|
I used the following code snippet to add an ImageServiceLayer with a 'Source Type' of 'Elevation' to my Ground Elevation group: I used this code snippet: protected override async void OnClick()
{
var map = MapView.Active?.Map;
if (map == null) return;
try
{
await QueuedTask.Run(() =>
{
//Define a ServiceConnection to use for the new Elevation surface
var serverConnection = new CIMInternetServerConnection
{
Anonymous = true,
HideUserProperty = true,
URL = "https://elevation2.arcgis.com/arcgis/services"
};
CIMAGSServiceConnection serviceConnection = new CIMAGSServiceConnection
{
ObjectName = "Antarctic DEM: Hillshade Multidirectional",
ObjectType = "ImageServer",
URL = "https://elevation2.arcgis.com/arcgis/services/Polar/AntarcticDEM/ImageServer",
ServerConnection = serverConnection
};
//Add the Elevation Surface to the Ground Elevation surface [Group]
var elevationLyrCreationParams = new ElevationLayerCreationParams(serviceConnection);
var groundSurface = map.GetGroundElevationSurfaceLayer();
var elevationSurface = LayerFactory.Instance.CreateLayer<Layer>(
elevationLyrCreationParams, groundSurface);
});
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
... View more
05-31-2023
02:24 PM
|
0
|
0
|
1177
|
|
POST
|
This worked for me: At startup I see this: Using this DAML syntax: <checkBox id="TestTool_Checkbox" caption="Check Here!"
isChecked="true" className="CheckBoxSimplify"
keytip="C1" >
<tooltip heading="Check Here!">
Test for default being checked<disabledText />
</tooltip>
</checkBox>
... View more
05-31-2023
10:15 AM
|
0
|
3
|
1241
|
|
POST
|
Follow these instructions: ProConcepts Framework · Esri/arcgis-pro-sdk Wiki (github.com)
... View more
05-26-2023
10:52 AM
|
1
|
0
|
1947
|
|
POST
|
Visual Studio 2022 Update 17.6.2 was available for me this morning. I installed the patch, and the Designer View comes up as expected now for my sample WPF forms. It looks like my patches version of "Microsoft.VisualStudio.DesignTools.XamlDesignerHost.pkgdef" was overwritten by the update and the fix (see above) had been applied to the replacement file.
... View more
05-25-2023
01:34 PM
|
3
|
0
|
4727
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | Monday | |
| 1 | 07-30-2025 12:03 PM | |
| 1 | 10-06-2025 01:19 PM | |
| 1 | 10-06-2025 10:37 AM | |
| 1 | 09-24-2025 09:12 AM |
| Online Status |
Online
|
| Date Last Visited |
yesterday
|