|
POST
|
sure thing. FWIW, I do not see any errors in the output, just CPU processor mismatch warnings. If you are having build errors can u post those or is the addin building successfully?
... View more
07-18-2022
09:03 PM
|
2
|
0
|
5849
|
|
POST
|
I suspect that this is the issue: https://support.esri.com/en/Technical-Article/000025544 The sdk faq may help also: https://github.com/esri/arcgis-pro-sdk/wiki/FAQ#diagnosing-issues-in-arcgis-pro-28-and-29 Bottom line, changing the Platform Target from "Any CPU" to "x64" should do the trick
... View more
07-18-2022
07:50 PM
|
2
|
1
|
5855
|
|
POST
|
I'm not sure why my reply was deleted. This was the original resource I discovered (and referenced): https://makolyte.com/system-data-sqlclient-is-missing-in-a-dotnet-core-project/
... View more
07-12-2022
06:42 AM
|
0
|
0
|
12446
|
|
POST
|
There are many different build actions in Visual Studio and it can be a bit confusing on which one to use (for any given usage). Content is a bit of an odd ball and I, personally, am not exactly sure what it is specifically intended for - I think it is more relevant for building ASP apps where "content" needs to be deployed to a website. I believe files marked as "content" get deployed with the website when it is published. The documentation (see below) also states that file content marked as "Content" will be accessible via Application.GetContentStream but I have not had occasion to use that. Resource is a WPF build action and this is usually what you want for images. When image content is marked as Resource it is literally compiled into the DLL and gets embedded in the assembly's manifest resources. This allows you to access said image resources with something called a Pack URI The VS Build action reference is here if you are interested in reading further: Build actions for files
... View more
07-11-2022
07:45 PM
|
0
|
0
|
3911
|
|
POST
|
I did a quick google of "system.data.sqlclient .net 6". This seemed (to me at least) to be one of the more promising links: https://makolyte.com/system-data-sqlclient-is-missing-in-a-dotnet-core-project/ It recommends including the System.Data.SqlClient nuget package. That's where I would start.
... View more
07-11-2022
05:57 PM
|
0
|
0
|
12484
|
|
POST
|
try this: internal class Button1 : Button
{
protected async void OnClickClip()
{
var tool_name = "analysis.Clip";
var extent = MapView.Active.Extent;
var sel_layer = MapView.Active.Map.GetLayersAsFlattenedList()
.OfType<FeatureLayer>().FirstOrDefault(l => l.Name == "GreatLakes");
if (sel_layer == null) return;
var gdb = Project.Current.DefaultGeodatabasePath;
var out_fc = System.IO.Path.Combine(gdb, "clipped_lakes_out");
var val_array = await QueuedTask.Run(() =>
{
var rect = GeometryEngine.Instance.Scale(extent, extent.Center, 0.5, 0.5) as Envelope;
var clip_poly = PolygonBuilderEx.CreatePolygon(rect, rect.SpatialReference);
var geom = new List<object>() { clip_poly };
return Geoprocessing.MakeValueArray(new object[] { sel_layer, geom, out_fc });
});
Geoprocessing.ExecuteToolAsync(tool_name, val_array,
null, null, null, GPExecuteToolFlags.InheritGPOptions);
}
protected override void OnClick()
{
OnClickClip();
}
}
... View more
07-08-2022
09:30 AM
|
1
|
1
|
2609
|
|
POST
|
when creating graphic elements, container can be one of: a layout - eg var container = LayoutView.Active.Layout; a graphicslayer - eg var container = MapView.Active.Map.GetLayersAsFlattenedList().OfType<GraphicsLayer>().First(); a group element. - eg var container = layout.GetElementsAsFlattenedList().OfType<GroupElement>().First();
... View more
07-07-2022
09:47 PM
|
1
|
0
|
1193
|
|
POST
|
I think this is a bug. "Arial Narrow" is the correct font family w/ a style of "Bold". After the text symbol creation can u try this as a workaround? CIMTextSymbol textLine =
SymbolFactory.Instance.ConstructTextSymbol(..,"Arial Narrow","Bold");
//workaround
textLine.FontFamilyName = "Arial Narrow";
//set style too if needed
textLine.FontStyleName = "Bold"; I tested on 3.0 (the latest) and it is working the same way it did as u refer to as "old"...i.e.: CIMTextSymbol textLine = SymbolFactory.Instance.ConstructTextSymbol(..., 8, "Arial Narrow", "Bold");
... View more
07-06-2022
04:06 PM
|
1
|
1
|
3591
|
|
POST
|
FYI: that's the content of the ArcGIS.Desktop.Layouts namespace in the Extensions assembly. https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic74111.html Double check that you have a good reference to the ArcGIS.Desktop.Layouts assembly in your project.
... View more
07-06-2022
03:12 PM
|
1
|
0
|
1758
|
|
POST
|
It is still there. U have something else going on. https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic11105.html
... View more
07-06-2022
02:13 PM
|
0
|
0
|
1770
|
|
POST
|
that is correct. RemoveAllDefinitionQueries() will do the same thing
... View more
07-05-2022
12:50 PM
|
1
|
0
|
1525
|
|
POST
|
Set the second frame dimensions to be the same as the first. So something like: table_frame2.SetHeight(table_frame1.GetHeight());
table_frame2.SetWidth(table_frame1.GetWidth());
... View more
07-05-2022
09:21 AM
|
1
|
1
|
1541
|
|
POST
|
unfortunately we cannot post binaries directly to github- hence the use of gh-pages which is a bit of a hack.
... View more
07-05-2022
07:41 AM
|
0
|
0
|
2645
|
|
POST
|
i had a bit of a problem getting gh-pages going on the repo (to upload the binaries) so i stuck it on the arcgis-pro-sdk site. can u see if u can get it from here? https://github.com/Esri/arcgis-pro-sdk/tree/gh-pages/content u want the 30_addinx.zip
... View more
07-01-2022
08:33 AM
|
2
|
2
|
2693
|
| 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 |
05-31-2026
09:30 AM
|