|
POST
|
I've noticed that when I find the data source for a layer in oracle sde it lists a temporary sde connection in the temp folder: AppData\Local\Temp\PyCharmPortableTemp\9be82beabe9a88c98b4f87b98e7a56f6.sde Instead of the actual sde connection that the layer is using. Is this a normal part of python in ArcGIS Pro or is there a setting someplace that I'm missing? Thanks
... View more
05-08-2018
11:59 AM
|
0
|
2
|
1014
|
|
POST
|
I'm creating a new map with similar symbology. The one I've been working on is too big to send. Before I do though I've done some more experimenting and it looks like the font that is not embedding is one that contains our department's official sybology. Could there be something with the font that would stop it from embedding? Thanks, Mark
... View more
04-17-2018
10:53 AM
|
0
|
1
|
4364
|
|
POST
|
After recruiting some help from someone who does not have any ArcGIS products installed it looks like both embedded and not embedded pdf files are showing the wrong symbols. I also opened the pdf files on my iPad and both are showing incorrectly. So, it looks like not embedding fonts is displaying correctly; with the pdf using the font installed on my computer. And it looks like embedding fonts is not working correctly. Thanks, Mark
... View more
04-17-2018
05:09 AM
|
0
|
3
|
4364
|
|
POST
|
I have ArcGIS Pro 2.1.0 installed. When I have the Embed Fonts not selected the symbols appear correctly: When I have the Embed Fonts selected the symbols do not appear correctly: And when I try to open the pdf file I get this error: Fonts need to be embedded on our maps because they get posted to the web site and sometimes get printed for publications. Thanks, Mark
... View more
04-17-2018
04:53 AM
|
0
|
0
|
4364
|
|
POST
|
I've been experimenting with ArcGIS Pro, trying to make some maps that we currently use ArcMap to produce. It is very important for us to be able to embed fonts so that the pdf files display property. I've noticed that the "embed fonts" seems to work the opposite of how it should; when the box is checked ArcGIS Pro is not embedding fonts. When I use Python, setting the embed fonts to TRUE also does not embed the fonts. When the box is not checked or I use FALSE then it seems that the fonts are embedded. Is this a bug that needs to be fixed in ArcGIS Pro? Has anyone else noticed this? Thanks, Mark
... View more
04-11-2018
07:41 AM
|
0
|
8
|
5977
|
|
POST
|
After looking through my mxd the problem is that I still have some layers in a personal geodatabase and I have been using a 64-bit IDE. So, that would account for having a difference between the IDE and ArcMap.
... View more
12-05-2017
05:42 AM
|
0
|
0
|
2462
|
|
POST
|
Here's the code I have have tried. It's pretty simple: it makes a list of all the layers with joins and then makes a list of the layers with joins and the name of the tables they join with. mxd=arcpy.mapping.MapDocument("current")
##mxd=arcpy.mapping.MapDocument(r"\\some.mxd")
layers=arcpy.mapping.ListLayers(mxd)
joinList=[]
tableList=[]
# Discover which spatial layers have joins and add to join list
for l in layers:
if l.isFeatureLayer and not l.isBroken:
flist=arcpy.Describe(l).fields
for f in flist:
if f.name.find(l.datasetName) >-1:
joinList.append(l)
break
# Discover the tables that are joined to the spatial layers
for l in joinList:
flist=arcpy.Describe(l).fields
for f in flist:
if f.name.find(l.datasetName) ==-1:
if [l.name,f.name[0:f.name.rfind(".")]] not in tableList:
tableList.append([l.name,f.name[0:f.name.rfind(".")]])
# List spatial layer and which tables are joined to it
for t in tableList:
print t Sorry for the formatting; I haven't posted code before. Switch the "mxd=" lines depending if you're using and IDE or the ArcMap python window.
... View more
12-04-2017
05:43 AM
|
0
|
3
|
2462
|
|
POST
|
I moved on to the next step and opened ArcGIS Pro and now PyCharm seems to be working. I was able to both run the script and import arcpy using the console. Thanks.
... View more
11-30-2017
11:39 AM
|
0
|
0
|
2465
|
|
POST
|
I installed PyCharm and did this: Browse to C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3 and choose python.exe. Click OK to set the project interpreter. Click OK to close the Default Settings window. Note: It may take a moment for the settings When I try to run the script I get an error when it tries to import arcpy.
... View more
11-30-2017
10:08 AM
|
0
|
1
|
2465
|
|
POST
|
I followed the instructions. So I set it as local and navigated to the Python.exe file in the indicated ArcGIS Pro/Python 3.5 subdirectory.
... View more
11-30-2017
09:41 AM
|
0
|
1
|
2465
|
|
POST
|
I am attempting to do the Python for Everyone training using ArcGIS Pro and python 3.5. I've followed the instructions and installed PyCharm but I am unable to import arcpy so I am unable to run any scripts. Are there some settings that I need to change in order to use PyCharm? Thanks
... View more
11-30-2017
08:40 AM
|
0
|
10
|
5520
|
|
POST
|
Right, I'm able to determine if a layer has a join based on the field names; but that only works if I run the script in ArcMap with the mxd open and I can determine the name of the table but not the file path. It looks like I can use that same strategy using an IDE but only if the tables are also in the same mxd with the layers they join to. When I run the script on a test mxd I get six layers with joins if I run it in the mxd and four if I use an IDE. It would be nice if I could get the table name, data source, join field, etc. Thanks
... View more
11-29-2017
12:29 PM
|
0
|
1
|
2462
|
|
POST
|
I have several mxd files with layers and tables that need to be updated periodically. Is there any way to use Python to see not only if a layer in an mxd has a join but what the join properties are? I have found a round a bout way to determine if a layer has a join using the field names but I would like to be able to update a join if a layer or table changes. Thanks,
... View more
11-29-2017
10:31 AM
|
0
|
9
|
3226
|
|
POST
|
I only have one feature in the feature class that I'm deleting so switching to TruncateTable_management might not make any difference. I also create temporary sde connections in my script and then delete them at the end.
... View more
10-03-2017
12:23 PM
|
0
|
0
|
1443
|
|
POST
|
When I run DeleteRows_management nothing happens if I use the 64-bit IDE but it works with the 32-bit IDE. No error messages, not versioned, no edit session. I run DeleteRows_management on the sde feature class to clear the existing features and then run Append_management to load the new ones.
... View more
10-03-2017
09:09 AM
|
0
|
2
|
1443
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-08-2023 10:12 AM | |
| 2 | 03-22-2023 11:10 AM | |
| 1 | 09-14-2020 08:13 AM | |
| 1 | 09-01-2017 11:10 AM | |
| 1 | 08-21-2020 10:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-01-2025
08:07 AM
|