Hot answers tagged

3

As mentioned in the documentation, you can refer to other 'types' by using the appropriate ID. This is what you set in the wizard when creating the combo-box, button, etc. and you can change it by editing the config.xml file in the root directory of your addin source. A really simple example that clears a combo-box list when the user presses a button: ...


2

Since your working in arcpy and doing a simple data transfer, use a search cursor to load your Spatial Join count results as the value in a dictionary associated with the FID key and then use and update cursor to read the FID from the current feature being updated and lookup the count from the dictionary to post it. It takes a few more lines of code to set ...


1

The row object can't be used in the manner that you're attempting: arcpy.FeatureClassToFeatureClass_conversion(row1[1],outSup... Because it's a row and not a feature class, to split your feature class to a single feature per output: desc = arcpy.Describe(catch10) OID_Field = desc.OIDFieldName # the name of the OID field, could be OID, OBJECTID, FID or ...


1

Yes you can. You should be able to do this with an update cursor. Something like this would work: # make sure you're in an edit session fields = [blob_field, file_name] #blob field is your blob field and file_name is the file name field with arcpy.da.UpdateCursor(attachments, fields) as rows: for r in rows: # save to jpg on disk for temp ...



Only top voted, non community-wiki answers of a minimum length are eligible