POST
|
Hello, is it possible to create button in ArcGIS Pro with ArcPy? I have a script that I run directly from the command line, but I need to modify it to a button directly in ArcGIS Pro. I know it can be achieved with SDK but is it possible with ArcPy? Thanks
... View more
11-05-2020
06:20 AM
|
0
|
3
|
1806
|
POST
|
Thanks but I think that in Pro is not possible convert features to graphics.
... View more
11-02-2020
11:21 PM
|
0
|
2
|
670
|
POST
|
Hello, I have layer of points and I need know their position in layout (in milimetres) from map frame. How can i do that please? Thanks
... View more
11-02-2020
12:48 PM
|
0
|
4
|
772
|
POST
|
Hello, If I want add data with addDataFromPath: aprx = arcpy.mp.ArcGISProject("current") m = aprx.listMaps("Map10")[0] m.addDataFromPath("C:\\Users\\aneta.ryglova\\Desktop\\Data_ZTM5_pro_Asseco\\Asseco\\Asseco_20201005.gdb\\T_MASKY_ANOTACI_M") it return: return convertArcObjectToPythonObject(self._arc_object.addDataFromPath(*gp_fixargs((data_path,), True))) RuntimeError and I don't know why, can you help me please? Thanks
... View more
11-01-2020
05:51 AM
|
3
|
3
|
2307
|
POST
|
Hello, I have a problem with Calculate Geometry Attributes. I have shp of point and I want Point x-coordinate and Point y-coordinate of them. I need values in decimal degrees in ETRS_1989_UTM_Zone_33N coordinate system. But if I will set Coordinate format as Decimal Degrees, it will give me values in WGS 84 and if I set coordinate system to ETRS_1989_UTM_Zone_33N it will give values in metres. Can you help me with solution? I really need help. Thanks Aneta
... View more
10-30-2020
07:14 AM
|
0
|
1
|
823
|
POST
|
Hello, How is it necessary to adjust common data (for example, railways and points - railway stations) in order to find the nearest distances? With example data Network Analyst works but with my data is nothing active. Thanks
... View more
10-19-2020
04:22 AM
|
0
|
0
|
390
|
POST
|
Hello Irene, I don't think it is possible. But you can get extent from data frame Camera -> Get Extent then create new polygon with coordinate from extent and then intersect layer with the polygon. With this solution you will not break your layer, but you will work in a completely different one. But maybe someone knows a better solution. Have a nice day
... View more
09-24-2020
03:33 AM
|
0
|
0
|
323
|
POST
|
Hello, I don't understand why if I use CalculateGeometryAttributes_management in metres it give me same values as X,Y coordinate but if I want decimal degrees value, it give me different values (picture). Can anyone help me please? Thanks arcpy.CalculateGeometryAttributes_management("C:\\Users\\aneta.ryglova\\Desktop\\layout pdf\\body1.shp", [["lat", "POINT_X"], ["long", "POINT_Y"]], "", "", "", "DD")
... View more
09-24-2020
02:25 AM
|
0
|
1
|
736
|
POST
|
Hello, I don't know why this script doesn't work. When I run it from a window in arcgis pro it works but like stand-alone script it doesn't work. It does not print any error, but no layer is selected and created in the resulting pdf. Can anyone advise me please? import arcpy import os import sys import math from datetime import datetime arcpy.env.overwriteOutput = True aprx = arcpy.mp.ArcGISProject(r"C:\\Users\\aneta.ryglova\\Desktop\\layout_zk.aprx") lyt = aprx.listLayouts("Layout1*")[0] arcpy.env.workspace = 'C:\\Users\\aneta.ryglova\\Documents\\ArcGIS\\Projects\\MyProject\\MyProject.gdb' klad_ztm10 = arcpy.SelectLayerByAttribute_management("klad", "NEW_SELECTION", "zm10 = '25-32-19'") klad_ztm10_vyber = arcpy.CopyFeatures_management(klad_ztm10, "C:\\Users\\aneta.ryglova\\Documents\\ArcGIS\\Projects\\MyProject\\MyProject.gdb\\klad_ztm10") arcpy.FeatureVerticesToPoints_management(klad_ztm10_vyber, "C:\\Users\\aneta.ryglova\\Desktop\\layout pdf\\body1.shp", "ALL") m = aprx.listMaps('Map')[0] lyr_pryc = m.listLayers("klad_Layer*") for layer in lyr_pryc: layer.visible = False lyt.exportToPDF(r"C:\\Users\\aneta.ryglova\\Desktop\\layout pdf\\zk11.pdf", resolution = 100, image_quality = 'FASTEST')
... View more
09-21-2020
02:27 AM
|
0
|
2
|
1003
|
POST
|
Hello, I need convert dynamic text to graphic with ArcPy. I know it is possible in ArcGIS Pro (picture) but I need do this operation with Arcpy. Thank you!
... View more
09-14-2020
11:54 PM
|
0
|
1
|
659
|
POST
|
Hello, I need map frame coordinates in degrees as in dynamic text but I need to continue working with these values in python. Is it possible to get these values using Arcpy? I tried camera.getExtent() but it gives values in Map units (in my case metres) and I need it in degrees. Thanks
... View more
08-13-2020
02:41 AM
|
0
|
0
|
372
|
POST
|
Hello Is it possible to run the Add-In using the command line and not directly in ArcGIS Pro? I need to generate a layout to which I add a large number of elements that are created and loaded slowly. Alternatively, is it possible to generate a layout using only the code in cmd without turning on gui? Thanks
... View more
07-29-2020
01:07 AM
|
0
|
0
|
311
|
POST
|
Hello! I get center location of map frame in layout by .GetX() and .GetY() methods but this methods give me results in Spatial Reference (Metres). I need to transform Spatial Reference (Metres) units to Degrees. How do i achieve this? Thanks
... View more
07-20-2020
05:41 AM
|
0
|
0
|
237
|
POST
|
I would like to ask you, is it possible to rotate graphic elements added to layouts? I attach a picture of the code with which I insert graphic elements into layouts. Is it possible to modify this code so that images are inserted rotated? Thank you for your reply in advance.
... View more
07-15-2020
12:59 AM
|
0
|
1
|
610
|
Title | Kudos | Posted |
---|---|---|
3 | 11-01-2020 05:51 AM |
Online Status |
Offline
|
Date Last Visited |
12-14-2023
01:16 PM
|