|
POST
|
Hi, I had similar issue with Database view on PostgreSql and registered case on Esri support site. It is still open. Have you tried to install patch 3.2.1?
... View more
01-03-2024
05:21 AM
|
0
|
3
|
4001
|
|
POST
|
I would try to take original popup fields like in my copy/pasted sample above and then leave only fields are required. Add to sample code additional parameter with list of field names and inside foreach check if fieldDescription field name exists in your list. private CIMPopupFieldDescription[] ChangeFieldNameInPopupFields(CIMPopupFieldDescription[] FieldDescriptions, List<string> fieldNames)
{
if (FieldDescriptions == null)
return null;
List<CIMPopupFieldDescription> fieldsList = new();
foreach (CIMPopupFieldDescription fieldDescription in FieldDescriptions)
{
if(!fieldNames.Contains(fieldDescription.FieldName) continue;
CIMPopupFieldDescription newDescript = new()
{
Alias = fieldDescription.Alias,
FieldName = fieldDescription.FieldName,
NumberFormat = fieldDescription.NumberFormat
};
fieldsList.Add(newDescript);
}
return fieldsList.ToArray();
}
... View more
01-03-2024
05:03 AM
|
0
|
0
|
2400
|
|
POST
|
You must be on the UI thread to call OpenTablePane function. Do not call it on MCT thread (in QueuedTask.Run).
... View more
01-02-2024
11:12 AM
|
0
|
1
|
2716
|
|
POST
|
NumberFormat is used in ArcGIS Pro SDK community sample /// <summary>
/// Change field name in popup fields
/// </summary>
/// <param name="FieldDescriptions">Source CIMPopupFieldDescription array</param>
/// <returns>New CIMPopupFieldDescription array</returns>
private CIMPopupFieldDescription[] ChangeFieldNameInPopupFields(CIMPopupFieldDescription[] FieldDescriptions)
{
if (FieldDescriptions == null)
return null;
List<CIMPopupFieldDescription> fieldsList = new();
foreach (CIMPopupFieldDescription fieldDescription in FieldDescriptions)
{
CIMPopupFieldDescription newDescript = new()
{
Alias = fieldDescription.Alias,
FieldName = GetNewFieldName(fieldDescription.FieldName),
NumberFormat = fieldDescription.NumberFormat
};
fieldsList.Add(newDescript);
}
return fieldsList.ToArray();
}
... View more
01-02-2024
11:06 AM
|
0
|
2
|
2444
|
|
POST
|
Hi, I would recommend start from checking is it possible to open table pane for the layer: foreach (var layer in attributeTableLayers)
{
if(FrameworkApplication.Panes.CanOpenTablePane(layer))
FrameworkApplication.Panes.OpenTablePane(layer, TableViewMode.eAllRecords);
}
... View more
01-02-2024
07:17 AM
|
0
|
3
|
2766
|
|
POST
|
Hi, Try to add NumberFormat initialization to new created CIMPopupFielDescription: var popupFieldDescription = new CIMPopupFieldDescription
{
Alias = field.AliasName,
FieldName = field.Name,
NumberFormat = field.NumberFormat
};
... View more
01-02-2024
06:56 AM
|
0
|
4
|
2487
|
|
POST
|
Another way is to use GraphicsLayer or overlay graphics. Make a square symbol with dimensions of raster cell size and put different color symbols from your array depending on array item value. It would be fast solution if you have few hundred of points
... View more
12-27-2023
07:06 AM
|
0
|
0
|
1724
|
|
POST
|
There is no direct way to do that. Workflow is following: 1. Create raster in database or file using geoprocessing 2. Using snippet for "Read and Write pixels from and to a raster dataset using pixel blocks" update pixels from your array. 3. Save raster 4. Create layer and add to map
... View more
12-27-2023
05:13 AM
|
1
|
0
|
1822
|
|
POST
|
Hi, There are many examples of working with raster here. You can create raster using geoprocessing called from ArcGIS Pro SDK for .Net. More info about raster creating geoprocessing tool here. How to call geoprocessing tool from ArcGIS Pro SDK for .Net is here
... View more
12-27-2023
01:16 AM
|
0
|
2
|
1957
|
|
POST
|
1. Make a copy of your workflow. 2. Delete all steps in your workflow which goes after your add-in calling and your add-in calling step. 3. Execute your new workflow. 4. Execute your add-in from ArcGIS Pro ribbon by pressing it's button.
... View more
12-27-2023
12:53 AM
|
0
|
0
|
3366
|
|
POST
|
Hi, If you have code of custom add-in, it is the same as debugging add-in. Start add-in debugging from Visual Studio. Place breakpoint inside Custom Command OnClick() method. Then execute workflow.
... View more
12-22-2023
06:30 AM
|
0
|
2
|
3399
|
|
POST
|
Hi, I would suggest you another workflow for event subscribing. At first in Initialize() subscribe to ProjectOpenedEvent. protected override bool Initialize()
{
ProjectOpenedEvent.Subscribe(OnProjectOpen);
} Then in OnProjectOpen method subscribe to DrawCompleteEvent private SubscriptionToken _drawCompleteEventToken;
private void OnProjectOpen(ProjectEventArgs args)
{
_drawCompleteEventToken = DrawCompleteEvent.Subscribe(OnDrawComplete);
}
... View more
12-22-2023
05:39 AM
|
0
|
0
|
2970
|
|
POST
|
Hi, Try set EditOperationType as Short. More info here.
... View more
12-19-2023
11:59 AM
|
0
|
1
|
1911
|
|
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
|
975
|
|
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
|
1126
|
| 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
|