POST
|
We have a database setting that is initiated from a combobox. It creates restrictions based on a field value (Region code). It is designed for users to insert, update, visualize a feature in the correct region. When a user change the region it is changed in the database w/o problem but map and attribute table gets stuck with the previous region. I noticed ArcGIS Pro starts 4 different Oracle session and probably it continues showing the data from one of the sessions that not updated. Is there anyway to manage these sessions? Sync or close? Or any idea how to tackle this problem? Thanks!
... View more
01-30-2025
01:30 PM
|
0
|
0
|
234
|
POST
|
@RobChasanI figured the problem. I was getting the geometry from wrong layer. I resolved the issue. Thanks for replying anyway.
... View more
09-25-2024
03:31 PM
|
1
|
0
|
598
|
POST
|
I am migrating an ArcObject module into Pro SDK that calculates the area of polygons that would be copied from one feature class to another. In the legacy code polygons reprojected into Albers US 1983 coordinate (102003) system from NAD 1983 GCS. There are discrepancies when calculating area of a polygon between Calculate Geometry on the attribute table and the code I tried in Pro SDK. I need to produce the same result what Calculate Geometry on the attribute table or Measurement tool. Here is my code: public static double CalculateArea(List<Geometry> geos)
{
List<Polygon> polygons = [];
var spRefAlbers = SpatialReferenceBuilder.CreateSpatialReference(AlbersUS1983WkId);
foreach (var geo in geos)
{
if (GeometryEngine.Instance.Project(geo, spRefAlbers) is Polygon plg)
{
polygons.Add(plg);
}
}
PolygonBuilderEx pLbuilderEx = new(polygons, AttributeFlags.None)
{
HasZ = false,
SpatialReference = spRefAlbers
};
//Unit for AlbersUS1983 is meter
return Math.Round((pLbuilderEx.ToGeometry().Area * 0.000247105381), 3);
} I also tried pLbuilderEx.ToGeometry().Extent.Area, getting polygon exterior ring, geodesic area calculation etc. but no luck There is about 500 acres difference any idea why? I'd appreciate any help. Thanks!
... View more
09-20-2024
06:02 AM
|
0
|
2
|
767
|
POST
|
External libraries can not be installed in to default arcpy environment anymore. We need to use some external libraries for accessing oracle, reading ms docs etc. in our scripts. We dont want to clone the deafult env and maintain that environment but we are looking for an option that we still use the default env and external libraries from a shared drive. Is it possible? If not what would be the best way to use external libraries with minimal maintaining effort? Thanks in advance
... View more
03-21-2024
09:45 AM
|
0
|
2
|
1483
|
POST
|
I need to check if a FeatureLayer editable and convey a message to the user if editing fails for a feature. I would like to show a meaningful reason why the FeatureLayer is not editable. I thought CanEditData() returns false for only if user unchecks editable checkbox on Contents pane but that is not I found out. So, what is the difference between these two other than one is method, the other is property? They basically check the same thing?
... View more
02-26-2024
06:48 AM
|
1
|
2
|
738
|
POST
|
I am trying to get the version of the geodatabase of a feature layer. I couldnt figure out so far I have this var featureLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault();
CIMDataConnection currentDataConnection = featureLayer.GetDataConnection();
string connString = null;
var fufu = currentDataConnection.ReadXml;
var dd = fufu.Target; I am trying to get the conn string and create Geodatabse object but no luck. Anybody knows how to get the version?
... View more
04-27-2023
12:14 PM
|
0
|
1
|
942
|
POST
|
We would like to use Tasks combining with SDK in a project. Users go through some consecutive process. One of the major issues is tasks can be editable or deleted by any user. Second major issue is the designing options. I can create task groups but cannot nested them as I can do in the ArcMap. Pro tasks more steps oriented whereas I need more selectable options as well as steps for a process. It is longshot but I would be really happy if there is any solutions for these issues. Thanks!
... View more
04-05-2023
06:53 AM
|
0
|
0
|
412
|
POST
|
@UmaHarano is it possible to use this for a dockpane coming from another addin. In my case, my main dockpane supposed to control another dockpane (dependent) that is attached to another addin. I am passing dockpaneid from categories/components and able to control it via a checkbox. However, I cant detect the event when user decides to close the dockpane via its pane by using X. Is there a solution for that? Thanks!
... View more
03-27-2023
08:16 AM
|
0
|
0
|
2816
|
POST
|
My colleague helped me to solve the problem. I was trying work it out from the main addin. Basically, I use <updateModule refID="NRM_ArcProMainMenu_Module">
<groups>
<updateGroup refID="Group_nrmlinking">
<insertButton refID="DepButtonCustomCategory"
insert="before"/>
</updateGroup>
</groups>
</updateModule> on the dependent addin which solved the problem
... View more
02-27-2023
03:48 PM
|
0
|
0
|
655
|
POST
|
In my project, I need to create check boxes dynamically that turn on/off groups (buttons) from separate addins. I was able to create check boxes by using Custom Categories Components = Categories.GetComponentElements("NRMCustomCategory");
//Then reading the states from other addins
foreach (ComponentElement component in Components)
{
string toolState = component.ReadAttribute("tool_state");
string toolName = component.ReadAttribute("tool_name");
string checkBoxName = toolName.Replace(" ", "");
//....
} Now, my checkboxes turn/on of the groups/controls but in their own tab. I would like to get them together under one tab I created for the main addin. I thought if I can read/write all DAML files during the initialazation I can put them altogether using something like this <updateModule refID="NRM_ArcProMainMenu_Module">
<groups>
<updateGroup refID="Group_nrmlinking">
<insertButton refID="DepButtonCustomCategory"
insert="before"/>
</updateGroup>
</groups>
</updateModule> from my search I found these but I am not sure how to use these or if I am on the right path https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic14871.html https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic14867.html I would appreciate any help!
... View more
02-27-2023
12:16 PM
|
0
|
1
|
735
|
POST
|
@Wolf I am working with VS2022 and AGP 3.0.3. I dont see AddInContent as an option in Build Actions. Am I missing something here?
... View more
02-12-2023
11:41 AM
|
0
|
1
|
6476
|
POST
|
I found a sample close to what I am looking for, Now I will try to adapt it https://developers.arcgis.com/documentation/arcgis-add-ins-and-automation/arcgis-pro/tutorials/manage-the-pro-ui-with-conditions/
... View more
02-09-2023
08:35 AM
|
0
|
0
|
676
|
POST
|
I was able to insert a check box under a menu into the daml file. https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic10325.html Now, I want to add its function. I would like it to activate a tab that I created For instance, when I click on the checkbox. I would like it to activate one of the other tabs or a tab I create. Also, for some reason check box is invisible before clicking on it. Thanks!
... View more
02-08-2023
06:47 PM
|
0
|
1
|
729
|
POST
|
@Wolf Thanks for the suggestion, I think I will lose some performance but I will see if I can apply.
... View more
12-28-2022
07:56 AM
|
0
|
0
|
792
|
POST
|
We have an ArcMap tool helping end-users to georeference pdf/tiff maps. The maps come with drawn and numbered grids on them, and the tool uses grid intersections to georeference the map. Also, end-users can create to aid the visibility of a given cell size, row, and column. I have two questions: 1. I checked the ArcGIS pro georeferencing tool and it is superior to what ArcMap offers. I find functionalities for the old tool already available in ArcGIS Pro except for creating grids. Do you think it is worth converting this old tool ArcGIS Pro tool? I would like to have your opinion on that if you use/know both georeferencing options. Picture of the old tool. X: Not needed 2. Is there a class/method in the SDK I can use for georeferencing. Maybe something like this : sourcePoint1 = x, y... targetPoint1 = x, y... controlPoints = { sourcePoint1, targetPoint1, ....sourcePointN, targetPointN} Georeference (controlPoints, CurrentMapProjection, TargetMapProjection) I found some bits and pieces but nothing that I am looking for. I would appreciate any help. Thanks in advance!
... View more
12-16-2022
08:17 AM
|
0
|
2
|
852
|
Title | Kudos | Posted |
---|---|---|
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 | |
5 | 03-14-2022 08:46 AM |
Online Status |
Offline
|
Date Last Visited |
03-26-2025
08:14 AM
|