POST
|
The documentation for the AddField_management tool implies that it will accept a Table View as an input data type. Whenever I try to add a field to a Table View however I get the message: "ERROR 000499: table is not editable Failed to execute (AddField)."
... View more
10-09-2012
02:27 AM
|
0
|
5
|
1044
|
POST
|
I have found two workarounds for this issue. 1. Create several MXD map documents. One for each set of maps that share a common scale, with the grids and graticules as desired. Use ArcPy to export them all as individual PDF pages and collate them together in the right order. 2. Use one MXD map document with several data frames. The first data frame contains the data and DDP index layer. Subsequent data frames with no data, but with a grid/graticule. The subsequent data frames are created exactly on top of the first data frame with the same page dimensions in the layout view. The extent is set to be derived from the first data frame, and the name includes the scale that they are suitable for. Once checked that these grid/graticule data frames look OK, offset them by a set amount (say -40cm in the X plane) so they don't appear in the layout view and slow ArcMap down. Then use an ArcPY script to cycle through the DDP. For each page, check the scale (taken from a scale attribute in the DDP index layer) against the data frame name. When a scale matches a grid/graticule data frame, move it directly over the map, export the pdf page, and then move it back again. Here is a copy of my current code for the second method, designed to be used with a script tool. A lot of parts are still hard-coded, so I'm sure it could be improved. # Import arcpy module
import arcpy
# Read the parameter values:
# 1: Input MXD
# 2: Output folder
# 3. Output filename
mxdPath = arcpy.GetParameterAsText(0)
outDir = arcpy.GetParameterAsText(1)
outFile = arcpy.GetParameterAsText(2)
arcpy.AddMessage("Processing: "+mxdPath)
mxd = arcpy.mapping.MapDocument(mxdPath)
# Get data frames from mxd
dfs = arcpy.mapping.ListDataFrames(mxd)
# Assume first data frame is the map (HARDCODED) and get the x page offset
x = dfs[0].elementPositionX
#Create final output PDF file
finalPdf = arcpy.mapping.PDFDocumentCreate(outDir + "\\" + outFile + ".pdf")
# Cycle through DDP in mxd
pageCount = mxd.dataDrivenPages.pageCount
for pageNum in range(1, pageCount + 1):
mxd.dataDrivenPages.currentPageID = pageNum
# Get scale from DDP index layer (HARDCODED - assumes "Scale" attribute exists)
scale = mxd.dataDrivenPages.pageRow.Scale
# Move Grids & Graticules in position for each scale (HARDCODED - data frames must have certain names)
for df in dfs:
if (df.name == "Graticule_"+str(scale)) or (df.name == "Grid_"+str(scale)):
df.elementPositionX = x
arcpy.AddMessage("Exporting page {0} of {1}".format(str(pageNum), str(pageCount)))
tmpPdf = outDir + "\\" + "temp.pdf"
arcpy.mapping.ExportToPDF(mxd, tmpPdf)
finalPdf.appendPages(tmpPdf)
# Move Grids & Graticules back to original position (HARDCODED -40cm assumed)
for df in dfs:
if (df.name == "Graticule_"+str(scale)) or (df.name == "Grid_"+str(scale)):
df.elementPositionX = -40
del tmpPdf
arcpy.AddMessage("Saving: " + outFile + ".pdf")
finalPdf.saveAndClose() Karl
... View more
09-27-2012
01:22 AM
|
0
|
0
|
546
|
POST
|
Are you running AutoCAD Map 3D on a 64-bit machine? Then you'll need the 64-bit .dll files. Read the following for more information: http://forums.autodesk.com/t5/AutoCAD-Map-3D/Unable-to-establish-a-connection-to-provider/td-p/3347801 http://totalcad.wordpress.com/tag/sde-dlls/
... View more
07-24-2012
05:54 AM
|
0
|
0
|
200
|
POST
|
I recently installed SP4 as it addressed the following bugs: �?� NIM072591 - Using the 'Export to CAD' tool to export a feature class with curves to a DGN results in irregular features. �?� NIM064639 - The Export to CAD tool is not writing any entities out when a true curves are used as input and written out to DGN files. If you look in Microstation these entities are not there. I then tried the ellipses again, but got the same results.
... View more
06-14-2012
06:45 AM
|
0
|
0
|
292
|
POST
|
The fastest and easiest way to populate your subtype field is use "Select by Attributes" and select the records based on a particular attribute value. For example, Type = "Interstate". From there, use the Field Calculator and calculate the subtype field to the appropriate subtype code (i.e. Subtype_Field = 1) Do this workflow for the remaining 14 subtype codes. There are other ways to select features as well - manual approach and then use the Field Calculator. I find that when I use Field Calculator to calculate the subtype field, it doesn't update the other fields with the associated default values for that subtype. Only when I manually select a subtype value (from the drop-down list) for a particular row, do the other fields update. Is there a way to update the subtype of multiple features in one go, which also updates the other fields to their defaults for that subtype? Thanks, Karl
... View more
05-15-2012
12:30 AM
|
1
|
1
|
494
|
POST
|
After running Update Primitives I tied to run the Geodatabase to S-57 tool again but got an error, the log is below: ----------------------------------
Export report for cell US4LA30M
----------------------------------
Error while initializing FREL Cache.-2147220985
ExportEN failed-2147220985
Total export time: 0 Hrs 0 Mins 8 Secs Any suggestions?
... View more
05-09-2012
11:54 PM
|
0
|
0
|
445
|
POST
|
I'm having problems getting ellipses to export to CAD (MicroStation V8 DGN) correctly, is this a bug? Steps to reproduce: 1. Create a new polyline feature class in a file geodatabase 2. Draw some ellipses 3. Export to CAD (DGN_V8) The resultant elements in the CAD drawing are "Arcs" in stead of Ellipses, and they either have zero size or have been rotated flat (see attached screenshots) Anyone else have the same problem? Karl
... View more
05-08-2012
06:30 AM
|
0
|
2
|
729
|
POST
|
Did anyone actually manage to get popups to work on cluster flares in 2.5 then? Was this implemented?
... View more
05-03-2012
07:46 AM
|
0
|
0
|
87
|
POST
|
Is there any documentation available that fully describes the ArcGIS S-57 ENC Data Model, including feature class attributes and domains? So far I have only found the following: ArcGIS Help Library: Nautical data models Gives an overview of the nautical models available. ArcNews Online: The ArcGIS S-57 ENC Nautical Data Model - The linked PDF shows diagrammatically a selection of feature classes, subtypes, attribues and domains - although the names have since changed i think. Thanks, Karl
... View more
04-11-2012
06:17 AM
|
0
|
1
|
2722
|
POST
|
I'm also a little confused with the concept of product geodatabases and product instances. From the Help documentation I am under the impression that product instances can only be created on "personal ArcSDE" databases (i.e. Microsoft SQL Server Express). However in the tutorial examples they are stored in File GDBs. Let me rephrase the above: Can individual product geodatabases in the desktop production environment be built on File geodatabases, or do they have to be built on ArcSDE geodatabases (using Microsoft SQL Server Express)? Make sure that you are in an edit session to run Update Primitives...you must start an edit session to run the tool. Thanks, that worked.
... View more
04-11-2012
04:09 AM
|
0
|
0
|
2030
|
POST
|
I'm also having an issue with trying to export the Geodatabase to S-57. I have to run Update Primitives first but that option is greyed out on the Production Editing toolbar. The Production Mapping and Nautical extensions are turned on.
... View more
04-10-2012
05:46 AM
|
0
|
0
|
2030
|
POST
|
Karl, Make sure that the Production Mapping and Nautical extensions are turned on. To do this you simply go to Customize on the Standard toolbar, click on extensions, and make sure that both the Production Mapping and Nautical extensions are turned on. If this doesn't do the trick, let me know and we'll trouble shoot further, K? 😉 Nancy Yes that was the problem, thanks Nancy. What I'm trying to do is go through a simple test procedure where I load a NOAA S-57 file into a geodatabase, and then export it again to a S-57 file. I think I want to work with the desktop production environment. I'm looking at the Importing and baselining existing ENC data topic in the ArcGIS Help Library to try and achieve this, but it's quite hard to follow as there are several levels of associated links to wade through. The only relevant tutorial I've found so far is "Setting up the Nautical Product Library for Electronic Charting" which was included in the TutorialsSamples folder as part of the install. It doesn't cover import/export of S-57 or building a product library / product geodatabases. Are there any other tutorials available for the Nautical Solution? I'm also a little confused with the concept of product geodatabases and product instances. From the Help documentation I am under the impression that product instances can only be created on "personal ArcSDE" databases (i.e. Microsoft SQL Server Express). However in the tutorial examples they are stored in File GDBs. Thanks again, Karl
... View more
04-10-2012
02:37 AM
|
0
|
0
|
2030
|