|
POST
|
I don't know another way. Geoprocessing tool documentation here: https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/register-as-versioned.htm It says that parameter must be Feature Dataset or Table View. There is no matter for Geoprocessing.MakeValueArray if you pass text string or FeatureDataset object. So code could look like this: DatabaseConnectionProperties connectionProperties = new DatabaseConnectionProperties(EnterpriseDatabaseType.Oracle)
{
...
}
using (Geodatabase geodatabase = new Geodatabase(connectionProperties))
{
// Open a FeatureDataset.
using (FeatureDataset featureDataset = geodatabase.OpenDataset<FeatureDataset>("your_dataset_name"))
{
// register feature dataset as versioned
var mva = Geoprocessing.MakeValueArray(featureDataset, "EDITS_TO_BASE");
await Geoprocessing.ExecuteToolAsync("RegisterAsVersioned_management", mva);
}
}
... View more
04-12-2023
01:02 PM
|
1
|
2
|
2785
|
|
POST
|
Hi, I use workflow which is written below. 1. Set EditOperation property SelectModifiedFeatures to false. 2. Set EditOperation property SelectNewFeatures to true. 3. Make your split operation and execute it. 4. Get splited feature layer selection. It will contain object ids of new created parts.
... View more
04-11-2023
10:17 PM
|
1
|
1
|
2424
|
|
POST
|
Hi, You can do it by calling geoprocessing: var mva = Geoprocessing.MakeValueArray(datasetName, "EDITS_TO_BASE");
await Geoprocessing.ExecuteToolAsync("RegisterAsVersioned_management", mva);
... View more
04-10-2023
11:47 PM
|
2
|
0
|
2815
|
|
POST
|
Hi, I have tried to run my application on Android phone from AppStudio Player and installed from apk file. AppStudio Player disables screen timeout and application view stays the same for all time of using no matter there are some actions on it or not. If I use application installed from apk, then after time specified in phone Screen timeout setting application goes to screen saving mode (gets dark). Is it possible using ArcGIS AppStudio API to get the same behavior like from AppStudio Player? Is there another way to get avoid screen timeout?
... View more
04-04-2023
01:30 AM
|
1
|
2
|
1718
|
|
POST
|
Hi, You can find ArcGIS Pro icon images and names here: https://github.com/Esri/arcgis-pro-sdk/wiki/DAML-ID-Reference-Icons In daml file it could look like that: <button id="your_button_Id" caption="your_button_name" className="your_button_class" loadOnClick="false" smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/DataReviewerImportRules16.png" largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/DataReviewerImportRules32.png" condition="esri_mapping_mapPane">
<tooltip heading=""><disabledText /></tooltip>
</button>
In xaml it could look like that: <Image Source="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/MoveFromFolder16.png" Stretch="None" />
... View more
03-20-2023
05:01 AM
|
1
|
0
|
6340
|
|
POST
|
You can use your module for parameter exchanging. Make property in module with public get and set methods. Before Execute call set parameter, and on tool activating read it.
... View more
03-16-2023
01:15 PM
|
0
|
0
|
3126
|
|
POST
|
Hi, Look at the existing thread: https://community.esri.com/t5/arcgis-pro-sdk-questions/passing-a-parameter-to-an-icommand/m-p/787266
... View more
03-16-2023
12:51 PM
|
0
|
0
|
3134
|
|
POST
|
Hi, You cant assign CreateChainedOperation result to the same variable editOperation. Each assigning destroys your previous operation. So you need new variable editOperation1. You can't execute twice the same operation. And I can't see your chained operation execution. Another one thing that CreateChainedOperation must be created after main operation is executed. Look here: https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic9507.html
... View more
03-15-2023
11:00 PM
|
0
|
0
|
1660
|
|
POST
|
Hi, You can change UpperBound values in created CIMRasterClassifyColorizer. public static async Task SetToClassifyColorizer(BasicRasterLayer basicRasterLayer)
{
// Defines values for parameters in colorizer definition.
string fieldName = "Value";
ClassificationMethod classificationMethod = ClassificationMethod.Manual;
int numberofClasses = 4;
List<double> values = new List<double>() { 2.0, 4.0, 6.0, 140.85 };
string colorRampStyle = "ArcGIS Colors";
string colorRampName = "Aspect";
await QueuedTask.Run(async () =>
{
// Gets a color ramp from a style.
IList<ColorRampStyleItem> rampList = GetColorRampsFromStyleAsync(Project.Current, colorRampStyle, colorRampName);
CIMColorRamp colorRamp = rampList[0].ColorRamp;
// Creates a new Classify Colorizer Definition using defined parameters.
ClassifyColorizerDefinition classifyColorizerDef = new ClassifyColorizerDefinition(fieldName, numberofClasses, classificationMethod, colorRamp);
// Creates a new Classify colorizer using the colorizer definition created above.
CIMRasterClassifyColorizer newColorizer = await basicRasterLayer.CreateColorizerAsync(classifyColorizerDef) as CIMRasterClassifyColorizer;
var classBreaks = newColorizer.ClassBreaks.ToList();
int counter = 0;
foreach(var classbreak in classBreaks)
{
classbreak.UpperBound = values[counter];
counter++;
}
newColorizer.ClassBreaks = classBreaks.ToArray();
// Sets the newly created colorizer on the layer.
basicRasterLayer.SetColorizer(newColorizer);
});
}
... View more
03-13-2023
12:44 AM
|
1
|
0
|
1567
|
|
POST
|
Hi, You need to listen these events: LayersAddedEvent, LayersRemovedEvent, StandaloneTablesAddedEvent and StandaloneTablesRemovedEvent. On each event you need to run your method for layers checking and set condition depending on results. To set condition status use FrameworkApplication.State.Activate(stateID); or FrameworkApplication.State.Deactivate(stateID); stateID is the string from your add-in daml file
... View more
03-01-2023
07:52 AM
|
1
|
0
|
1825
|
|
POST
|
Hi, I think you have misspelling in your calculator tool name. In your code managment.CalculateField must be management.CalculateField
... View more
03-01-2023
06:12 AM
|
0
|
0
|
1354
|
|
POST
|
Hi, We have reported case to Esri support about the same behavior. It has bug status (BUG-000153876)
... View more
02-27-2023
11:41 PM
|
1
|
0
|
3321
|
|
POST
|
Hi, Problem 1: I have reported case to esri support about that in November 2022. Case number #03196489 Just ignore IsEmpty value for now, or use your workaround to count for changes. Problem 2: Date is not simple string value. Let's try like this: selq.WhereClause = "DATE_LASD = date '2022-04-20 00:00:00'"; More info here: SQL reference for query expressions used in ArcGIS—ArcGIS Pro | Documentation
... View more
02-26-2023
10:31 PM
|
1
|
0
|
1967
|
|
POST
|
Hi, Which tooltips are you talking about: ArcGIS Pro ribbon buttons and tools or WPF window controls? In first case you can specify them in daml: <button id="acme_rename" caption="Rename" className="RenameProjectItem" smallImage="/Images/GenericPencil16.png">
<tooltip heading="Rename">Rename the project item.
<disabledText>No project loaded.</disabledText>
</tooltip>
</button> For WPF window controls there is no one way for tooltips. Some of controls have original tooltips, some - no. But you can do styling or something like this. You can search internet for samples
... View more
02-12-2023
05:59 AM
|
0
|
0
|
1425
|
| 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
|