|
BLOG
|
I'm happy to announce that I have a new MVP rank in Esri Community today. I am glad that my contribution to the community's activities was noticed and appreciated. It took about 2 years to achieve that. I totally agree with @JesseCloutier and @BlakeTerhune thoughts. By subscribing to your favorite groups you can to know: - what are colleagues doing around a world using Esri products; - what challenges they face; - how their issues could be solved; - different approaches for same task. These knowledges can improve your work performance. Sometimes in my work I had faced issues about them I have read some time ago in posts or colleagues from community have the same issues as I had in my projects and I can share my experience. Your knowledge can improve someone else works performance too.
... View more
01-09-2024
11:49 AM
|
2
|
0
|
1657
|
|
POST
|
As I mentioned above, I have issue with database view not simple table. It worked fine in versions before 3.2. Error: The operation is not supported by this implementation. Code: using (Table viewTable = geodatabase.OpenDataset<Table>(viewName))
{
var tableDefinition = viewTable.GetDefinition();
// other code with tableDefinition
} I have attached print screen of database view properties window.
... View more
01-03-2024
11:43 PM
|
0
|
1
|
4041
|
|
POST
|
At first, we have made workaround for reading table fields from cursor instead of table definition. We decided to go back to SDK 3.1 for the same reason as you worry.
... View more
01-03-2024
06:24 AM
|
0
|
1
|
4088
|
|
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
|
4116
|
|
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
|
2458
|
|
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
|
2790
|
|
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
|
2502
|
|
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
|
2840
|
|
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
|
2545
|
|
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
|
1753
|
|
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
|
1851
|
|
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
|
1986
|
|
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
|
3467
|
|
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
|
3500
|
|
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
|
3035
|
| 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
|