|
POST
|
@Wolf Thanks for the reply. I will check out and let you know. I use SearchBox heavily in my AddIns. I gotta figure this out
... View more
07-08-2022
10:43 AM
|
0
|
0
|
1397
|
|
POST
|
I used to run this w/o a problem but now saying there is no SuggestionSource property. I am migrating my AddIn to 3.0/.Net6. I check the documentation. I didn't find any info that says SuggestionSource replaced/removed. https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic15062.html https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic15120.htmlhttps://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic15062.html Does anyone know what might be the issue? <controls:SearchTextBox x:Name="SearchLayersBox" Height="23" Width="212" Margin="5,5,5,10" Grid.Row="0" Grid.Column="0"
VerticalAlignment="Top" InfoText="Search layers here"
SearchMode="Auto" ShowHistory="True" SuggestionListMax="15"
ToolTip = "{Binding SearchLayersBoxToolTip, UpdateSourceTrigger=PropertyChanged}"
Text="{Binding SearchLayersBoxText, UpdateSourceTrigger=PropertyChanged}"
SuggestionSource="{Binding SearchLayersBoxSuggestionSource, UpdateSourceTrigger=PropertyChanged}"
/>
... View more
07-06-2022
08:44 AM
|
0
|
4
|
1454
|
|
POST
|
I am updating my AddIns and switching to SDK 3.0/.Net 6 FeatueLayer.RemoveAllDefinitionFilters() is not resolved the closest function I found is FeatureLayer.RemoveAllDefinitionQueries(). The same issue exists also with FeatureLayer.DefinitionFilter but there is FeatureLayer.DefinitionQuery. I still have many errors I can't run my AddIn. Is there anyone who knows my assumption is right? https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic11585.html
... View more
07-05-2022
10:46 AM
|
0
|
2
|
1562
|
|
POST
|
I was trying to make sure before proceeding further. Thank you!
... View more
04-11-2022
10:05 AM
|
0
|
0
|
1827
|
|
POST
|
How about button id and DockPane id? <group id="SpatialDataExplorer_Group1" caption="Data Explorer Group" appearsOnAddInTab="true">
<!-- host controls within groups -->
<button refID="SpatialDataExplorer_Dockpane1_ShowButton" size="large" />
</group>
</groups>
<controls>
<!-- add your controls here -->
<button id="SpatialDataExplorer_Dockpane1_ShowButton" caption="Kentucky Spatial Data" className="Dockpane1_ShowButton" loadOnClick="true" smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonPurple16.png" largeImage="Images/SDE_Icon.png">
<tooltip heading="Explore Kentucky spatial data">Show Dockpane<disabledText /></tooltip>
</button>
</controls>
<dockPanes>
<dockPane id="SpatialDataExplorer_Dockpane1" caption="Kentucky Spatial Data Explorer" className="Dockpane1ViewModel" dock="right" dockWith="esri_core_contentsDockPane" >
<content className="Dockpane1View" />
</dockPane>
</dockPanes>
... View more
04-11-2022
09:48 AM
|
0
|
2
|
1829
|
|
POST
|
I will update an AddIn I created couple years ago. I am an end-user for this AddIn as well. I would like to continue to use it while developing the newer version. I created another branch in GitHub but if I run the newer version in VS it will overwrite the old AddIn In ArcGIS Pro. Ideally, I would like to develop it as a separate AddIn but both older and newer versions point to the same GitHub entry. Later on, I can archive the older version. Is there a solution to this? What is the best approach? Thanks.
... View more
04-11-2022
07:58 AM
|
0
|
4
|
1868
|
|
IDEA
|
Thank you all for the answers! @KoryKramer @JeffBarrette I was not aware of the shortcuts. Yes, functionality there but it is not user-friendly and intuitive. I think many users would agree with me. @BryndaHatch I know how to use group layers but using group layers is not a direct answer to this suggestion. My suggestion is to make it easier to turn on and off all layers easily. Creating a group layer adds more jobs to do it although group layer is very helpful organizing the layers.
... View more
03-15-2022
05:53 AM
|
0
|
0
|
2169
|
|
IDEA
|
Sometimes users work with so many layers and vision gets lost or interfered. Users might like to turn off all layers and make visible only one layer to make the vision clear. To do that, they need to go check/uncheck layer by layer. If you place a checkbox next to each Map to turn on/off layers, it would save time and ease the interaction. Something like this
... View more
03-14-2022
08:46 AM
|
5
|
6
|
2285
|
|
IDEA
|
I am developing a tool which users search/filter features on a table embedded in a ProWindow. Labels and the points cluttered and visibility is pretty low. I can use deeper zoom deeper for a single feature but multiple selected features not very visible as shown below Optionally, If labels are highlighted along with the features it would help a lot. Something like this Thanks!
... View more
02-08-2022
07:40 AM
|
4
|
0
|
601
|
|
POST
|
TableControl is not recognized in XAML which blocks UI Design. Is there a way to fix this problem? It still functions properly but causes inconvenience when dealing with UI Design.
... View more
02-02-2022
10:24 AM
|
0
|
1
|
1001
|
|
POST
|
Based on spatial query selecting multiple features and going through selected features QueuedTask.Run(() =>
{
using (Geodatabase DMPGeodatabase = new Geodatabase(DMPReadConn))
{
FeatureClass featureClassToBeSelected =
DMPGeodatabase.OpenDataset<FeatureClass>("featureClassToBeSelected");
FeatureClass featureClassSelectionCriteria =
DMPGeodatabase.OpenDataset<FeatureClass>("featureClassSelectionCriteria");
using (RowCursor rowCursor = featureClassSelectionCriteria.Search())
{
while (rowCursor.MoveNext())
{
using (ArcGIS.Core.Data.Row row = rowCursor.Current)
{
if (row["Field"].ToString() == "someAtrribute") //e.g., row[city] = "Chicago"
{
Feature feature = rowCursor.Current as Feature;
Geometry geometry = feature.GetShape(); //Get Chicago's shape point, polygon or line
var spatialQuery = new SpatialQueryFilter() { FilterGeometry = geometry, SpatialRelationship = SpatialRelationship.Intersects };
var selectedFeatures = featureClassToBeSelected.Select(spatialQuery, SelectionType.ObjectID, SelectionOption.Normal); //selected features inside Chicago
using (RowCursor rowCursorPB = selectedFeatures.Search())
{
while (rowCursorPB.MoveNext())
{
using (ArcGIS.Core.Data.Row rowPropBoundsPB = rowCursorPB.Current)
{
//Go through all selected features based on spatial query
//Do something with selected features
}
}
}
}
}
}
}
}
});
... View more
01-11-2022
10:48 AM
|
0
|
0
|
711
|
|
POST
|
Thanks for the code, it would make more sense if formatted properly.
... View more
01-11-2022
10:23 AM
|
0
|
0
|
711
|
|
POST
|
@GKmieliauskas, Thanks for the solution and detailed explanation, it worked very well. This will help me to reduce lotta repetition.
... View more
12-27-2021
04:31 AM
|
0
|
0
|
2255
|
|
POST
|
Hi @GKmieliauskas , I think I did not explain my situaton well. I don't want it to be null. I would like to return the fLayer to main thread either as a new layer or a Layer from the TOC. So, I can make queries, extract data, table etc. Maybe, I should declare the fLayer as public and assign it after checking its existence.
... View more
12-23-2021
07:14 AM
|
0
|
2
|
2283
|
|
POST
|
I would like to refactor my code and implement a method instead of writing/copying the same code again again. I check TOC whether a certain Layer exists. If TOC does not have it I create the FeatureLayer. I use this process a lot in my applications. So, here is the method but it does not work public Task<FeatureLayer> AddLayerToTOC(Uri layerUri, string layerName)
{
return QueuedTask.Run(() =>
{
MainGridEnabled = false;
FeatureLayer fLayer;
TOCLayers = MapView.Active.Map.Layers;
var TOCLayerNames = TOCLayers.Select(p => p.Name);
if (TOCLayerNames.Contains(layerName) == false)
{
fLayer = LayerFactory.Instance.CreateFeatureLayer(layerUri, MapView.Active.Map, 0, layerName);
}
else
{
foreach (Layer layer in TOCLayers)
{
if (layer.Name == layerName)
{
fLayer = layer as FeatureLayer;;
}
}
}
MapView.Active.ZoomToSelected();
MainGridEnabled = true;
return fLayer;
});
} I get CS0165: Use of unassigned local variable Problem coming from else {} part because VS thinks fLayer not assigned but I will do that while application is running. Is there a solution to this or another way of doing it?
... View more
12-22-2021
08:27 AM
|
0
|
4
|
2316
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-23-2021 02:29 PM | |
| 1 | 09-25-2024 03:31 PM | |
| 1 | 02-26-2024 06:48 AM | |
| 1 | 02-11-2020 02:18 PM | |
| 1 | 07-20-2022 08:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|