|
POST
|
You need to set back field descriptions after modifying using SetFieldDescriptions method.
... View more
12-18-2023
10:00 PM
|
0
|
1
|
1832
|
|
POST
|
Hi, Answer to part of your B question: There is ExecuteStatement method in ArcGIS Pro API, but no results can be returned. I have similar case with requirement execute SQL statement and get result from it. I made python tool and called it from add-in. Would it be faster than using ArcGIS Pro API, I don't know, because you need to call geoprocessing which is not so fast itself. What SQL query can retrieve featureclasses and standalone tables I don't know. You need to explore all system tables created by sde and check for featureclasses and standalone table names.
... View more
12-15-2023
06:49 AM
|
0
|
0
|
1366
|
|
POST
|
Hi, You need to set NumberFormat property in layer field description: var fieldDescriptions = featureLayer.GetFieldDescriptions();
foreach (var fieldDescr in fieldDescriptions)
{
if (!fieldDescr.IsVisible || fieldDescr.Name == shapeField) continue;
if(fieldDescr.Type == FieldType.Integer)
{
var custNumbFormat = new CIMCustomNumberFormat();
custNumbFormat.FormatString = "###-##-####";
fieldDescr.NumberFormat = custNumbFormat;
}
}
featureLayer.SetFieldDescriptions(fieldDescriptions);
... View more
12-15-2023
12:16 AM
|
0
|
3
|
1886
|
|
POST
|
Hi, You can use code below: double resultRadius = 0;
if (circularArc.IsCircular)
{
resultRadius = Math.Abs(circularArc.SemiMajorAxis);
} SemiMajorAxis Property (EllipticArcSegment)—ArcGIS Pro
... View more
12-14-2023
12:49 AM
|
1
|
0
|
1063
|
|
POST
|
On ArcGIS Pro 3.1 renaming of Group is working fine. I rename it in module overridden Initialize() method. I have found that FrameworkApplication.GetPlugInWrapper method in both cases returns invalid CommandType property. It returns Button, but it must return Tab and Group CommandType Enumeration—ArcGIS Pro
... View more
12-13-2023
11:06 PM
|
0
|
0
|
1802
|
|
POST
|
Have you tried to pass "true" for second parameter in FrameworkApplication.GetPlugInWrapper? On startup your tab or group could be not created.
... View more
12-13-2023
10:02 AM
|
0
|
2
|
1854
|
|
POST
|
I download all samples zip from github, extract it locally and do search for method or object name or file extension
... View more
12-13-2023
08:22 AM
|
1
|
0
|
3650
|
|
POST
|
Hi, You can change tab or group names directly in daml. Tabs and groups have "caption" attribute. What is the reason to change them from code? <tabs>
<tab id="ApplySymbology_Tab1" caption="New Tab">
<group refID="ApplySymbology_Group1"/>
</tab>
</tabs>
<groups>
<group id="ApplySymbology_Group1" caption="Group 1" appearsOnAddInTab="true" keytip="G1">
<button refID="ApplySymbology_ApplySymbButton" size="large" />
</group>
</groups>
... View more
12-13-2023
08:00 AM
|
1
|
4
|
1921
|
|
POST
|
Hi, I would suggest you do not use Windows Forms SaveFileDialog in ArcGIS Pro. Use ArcGIS Pro SaveItemDialog: var dlg = new SaveItemDialog();
dlg.Title = "Save JSON File";
dlg.OverwritePrompt = true;
dlg.DefaultExt = "json";
dlg.InitialLocation = @"C:\Temp";
var fileFilter = BrowseProjectFilter.GetFilter("esri_browseDialogFilters_browseFiles");
fileFilter.FileExtension = "json";//restrict to specific extensions as needed
fileFilter.BrowsingFilesMode = false;
//Specify a name to show in the filter dropdown combo box - otherwise the name
//will show as "Default"
fileFilter.Name = "(*.json)";
dlg.BrowseFilter = fileFilter;
bool? result = dlg.ShowDialog(); With SaveItemDialog it works as you expected.
... View more
12-12-2023
09:10 AM
|
1
|
0
|
1432
|
|
POST
|
Hi, Look at the thread. Using converter you can convert c# code from sample to VB code. QueuedTask.Run could look like that: Private Sub SurroundingSub()
Dim gdbPath As String = "@C:\myDataFolder\myData.gdb"
Dim newlyAddedGDB = Await QueuedTask.Run(Function()
Dim item = TryCast(ItemFactory.Instance.Create(gdbPath), IProjectItem)
Return If(Project.Current.AddItem(item), TryCast(item, GDBProjectItem), Nothing)
End Function)
End Sub
... View more
12-12-2023
07:56 AM
|
1
|
0
|
3701
|
|
POST
|
Take a look at Magnifier_MapTool how to bind your tool to mapcontrol
... View more
12-06-2023
10:25 PM
|
0
|
0
|
2055
|
|
POST
|
Hi, Look at ArcGIS Pro SDK community AddFeatureTest sample
... View more
12-06-2023
12:37 PM
|
0
|
0
|
836
|
|
POST
|
You must fill ClipboardItem from your own data like in method from DragAndDrop sample: public virtual ItemInfoValue GetItemInfoValue()
{
var uri = _path + @"\" + _name;
var gdb_item = ItemFactory.Instance.Create(uri);
if (gdb_item == null)
{
MessageBox.Show($@"Unable to locate: {uri} - Feature datasets are not supported.");
}
return new ItemInfoValue()
{
name = gdb_item?.Name,
title = gdb_item?.Name,
catalogPath = gdb_item?.Path,
type = gdb_item?.Type,
typeID = gdb_item?.TypeID,
isContainer = "false"
};
} Your dockpane must implement IDragSource interface (like in sample)
... View more
12-06-2023
09:29 AM
|
0
|
0
|
1273
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | 3 weeks ago | |
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|