|
POST
|
Hi, Try set EditOperationType as Short. More info here.
... View more
12-19-2023
11:59 AM
|
0
|
1
|
1943
|
|
POST
|
Hi, Make your own custom control and add to ribbon. Put inside button with image and label below. There is no limitation for width, only for height. ArcGIS Pro sdk community sample here.
... View more
12-19-2023
11:40 AM
|
1
|
0
|
1006
|
|
POST
|
As specified here: "The value returned from the FilePath property is the full path to the file and its file name. The path is determined based on the location currently being viewed in the Browse dialog, which is extracted from the breadcrumb control. The file name includes the file extension that was specified in the Name text box or was defined as the default file extension for the dialog box." It is not useful, but by design.
... View more
12-18-2023
10:16 PM
|
0
|
1
|
1150
|
|
POST
|
You need to set back field descriptions after modifying using SetFieldDescriptions method.
... View more
12-18-2023
10:00 PM
|
0
|
1
|
1884
|
|
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
|
1405
|
|
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
|
1938
|
|
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
|
1100
|
|
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
|
1852
|
|
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
|
1904
|
|
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
|
3732
|
|
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
|
1971
|
|
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
|
1467
|
|
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
|
3783
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | 07-21-2026 10:23 PM | |
| 1 | 06-30-2026 10:14 PM | |
| 1 | 06-30-2026 01:43 PM | |
| 2 | 04-24-2026 08:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|