|
POST
|
Hey Dave, I just used the map series python script tools that Tom linked to, and it worked. I don't have any images in my layouts.
... View more
09-15-2020
09:37 AM
|
0
|
0
|
4862
|
|
POST
|
Hey Tom, The colon is part of the page name. I tried saving to a new location and saving to a new aprx. Those steps didn't help. I will just split the pages in Acrobat for now. Thanks!
... View more
09-11-2020
10:18 AM
|
0
|
0
|
4862
|
|
POST
|
OK. Thank you. I found that the error only happens when I chose to export multiple PDFs with the page name as suffix. I can export as a single file and then split each page out to a new PDF.
... View more
09-11-2020
09:57 AM
|
0
|
0
|
2649
|
|
POST
|
I'm having the same issue, and now I can't even export at all. It's saying that the PDF (which hasn't been exported yet) is open in another program. What is the BUG number on this so we can escalate? I can't wait around for another patch to export floor plan maps for first responders.
... View more
09-10-2020
01:08 PM
|
0
|
0
|
2649
|
|
POST
|
And now it won't export at all. It's saying that the PDF (which does not exist yet) is open in another program. There aren't any other programs open. This issue persists after restarting the computer. I'm trying to export school floor plan maps for our city's first responders, so this is pretty critical.
... View more
09-10-2020
12:56 PM
|
0
|
3
|
4862
|
|
POST
|
I'm exporting a 242 page Map Series to PDF. In 2.6.1, it says "export complete" almost immediately. I'm watching the destination folder continue to fill up long after this. This didn't happen in 2.5. Could it be a New BUG?
... View more
09-10-2020
11:20 AM
|
0
|
8
|
4978
|
|
POST
|
I have a feature class that is approximately 15000 rooms over hundreds of buildings at around 100 different sites. Each row in the feature (room) has a unique space ID code, and corresponding building and site codes. Here is an example: I want to set up contingent values so that a user chooses the site from a dropdown, which then restricts the building choice to only the buildings at that site, and then restricts the room choice to only rooms in that building. I have coded domains set up for site, building and room, and I understand how to set up a contingent value field group. The problem is, it looks like I need to manually set up each contingent value. I can't do this because I would have to scroll through 15000 values here to find the rooms I'm looking for, and there's really no way to discern that from the domain list (see screenshot). And I need the rooms to be grouped as contingent values (like these 90 rooms at the main building of site X). It looks like it wants me to choose a single room here. I'm probably missing something. Is there a way to script this in Python?
... View more
08-25-2020
10:53 AM
|
0
|
1
|
580
|
|
POST
|
The problem I'm having now is that the script is skipping over the first couple of dozen feature classes and I'm not sure why. I'm able to load these features into a map with no problems. There is no difference in the naming conventions. The features being skipped are like "ABERNETHY_room_1_grid", and the first ones the script iterates through are like "AINSWORTH_room_1_grid." Some of the ones being skipped were copied from another geodatabase, but there is nothing outwardly wrong with them. Is there a method to examine features in a geodatabase for errors?
... View more
08-06-2020
10:01 AM
|
0
|
0
|
2568
|
|
POST
|
They're at the root level. So it's working now. I changed the name of the Default gdb to "grids_org." Not sure if that was the issue. Here is my script: import os, datetime, re
import sys
import arcpy
from arcpy import env
from datetime import date, timedelta
date_obj = date.today()
date_string = date_obj.strftime("%Y%m%d")
memory_hole = r'memory\\'
output_gdb = r"C:\\Temp\\ReEntry_Capacity\\merged_grids.gdb"
input_gdb = r"C:\\Temp\\ReEntry_Capacity\\grids_org.gdb"
arcpy.env.workspace = input_gdb
arcpy.env.overwriteOutput = True
featureclasses = arcpy.ListFeatureClasses()
for fc in featureclasses:
start_time = time.time()
capacity = arcpy.GetCount_management(fc)
room = re.search(r"(?<=_room_).*?(?=_grid)",fc, flags=0)
site = re.search(r".+?(?=_room_)",fc, flags=0) ##"([^_room_]+)*"
roomNum = room.group(0)
siteName = site.group(0)
grid_buffer_dissolve = memory_hole + siteName + "_room_" + roomNum + "_buffdiss"
print(siteName + " room " + roomNum)
arcpy.analysis.Buffer(fc, grid_buffer_dissolve, "-0.01 Feet", "", "", "ALL", None, "PLANAR")
arcpy.AddField_management(grid_buffer_dissolve, "Site", "TEXT")
arcpy.CalculateField_management(grid_buffer_dissolve, "Site", '"' + siteName + '"')
arcpy.AddField_management(grid_buffer_dissolve, "RoomNumber", "TEXT")
arcpy.CalculateField_management(grid_buffer_dissolve, "RoomNumber", '"' + roomNum + '"')
arcpy.AddField_management(grid_buffer_dissolve, "Count", "SHORT")
arcpy.CalculateField_management(grid_buffer_dissolve, "Count", capacity)
arcpy.Append_management(grid_buffer_dissolve,output_gdb + '\\capacity_grids',"NO_TEST")
elapsed_time_secs = time.time() - start_time
msg = "Execution time: %s" % timedelta(seconds=round(elapsed_time_secs))
print(msg)
... View more
08-05-2020
09:58 AM
|
1
|
1
|
2568
|
|
POST
|
I was able to copy over several dozen without an issue. I tried compacting and compressing the gdb, but that didn't help. I'll try rebooting. The gdb is named "Default", because I was using the project default for temporary storage.
... View more
08-04-2020
03:35 PM
|
0
|
0
|
2568
|
|
POST
|
Sorry I didn't mention that these are polygon grids created with the generate tessellations tool.
... View more
08-04-2020
01:56 PM
|
0
|
2
|
2568
|
|
POST
|
I have a geodatabase with thousands of grid features. I'm trying to dissolve and append these to a single dataset. I've tried iterating through the feature classes, but after spinning for a while the script keeps returning AttributeError: 'NoneType' object has no attribute 'group' when I try to list the feature classes. I have another nearly identical gdb that does not have this issue. Is there a way to figure out if there is a corrupted feature class, or if the gdb is corrupted?
... View more
08-04-2020
12:02 PM
|
0
|
7
|
2667
|
|
POST
|
I am getting the count that way. I just figured out the issue. I still had a dissolve tool in my script right after the buffer tool that I forgot to delete. Facepalm. Thanks guys!
... View more
07-30-2020
10:33 AM
|
0
|
0
|
2577
|
|
POST
|
So this works perfectly when I run the tool manually in Pro, but when I export it as a python script from the geoprocessing history and run it, it outputs the dissolved outline. I've tried changing the parameters and it's still just making the outline: arcpy.analysis.Buffer(fc, grid_buffer_dissolve, "-0.01 Feet", "", "", "NONE", None, "PLANAR") I need to script this to dissolve thousands of these and append them to a single feature class.
... View more
07-29-2020
04:34 PM
|
0
|
2
|
2577
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 1 | 11-24-2025 03:59 PM | |
| 1 | 09-13-2024 10:43 AM | |
| 1 | 06-05-2025 01:26 PM | |
| 3 | 04-04-2025 10:54 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|