Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Experience Builder
ArcGIS Dashboards
ArcGIS CityEngine
ArcGIS Spatial Analyst
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Public Safety
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcObjects SDK
ArcGIS Pro SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
File Geodatabase API
Game Engine Maps SDKs
All Developers Communities
Worldwide
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Esri India
GeoDev Germany
ArcGIS Content - Esri Nederland
Esri Italia Community
Comunidad GEOTEC
Esri Ireland
Používatelia ArcGIS
All Worldwide Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Worldwide
Events
Learning
ArcGIS Topics
Networks
GIS Life
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
Community Ideas
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
Python
:
Python Questions
:
How to add a GLOBALID type field to a feature laye...
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
How to add a GLOBALID type field to a feature layer by Python?
Subscribe
488
3
12-22-2010 08:24 AM
by
SuiHuang
Occasional Contributor II
12-22-2010
08:24 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Hi Experts:
I am writing a Python script to add fields to a layer in file geodatabase.
I want to add a field of GLOBALID type, but the Add Field geo-processing tool in ArcGIS 9.2 only support TEXT |FLOAT|DOUBLE|SHORT|LONG|DATE |BLOB|RASTER
http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Add_Field_(Data_Management
)
Is there any way for me to let the script add a GLOBALID field for me?
Thank you.
Tags
(2)
Tags:
gis_developers
python
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
3 Replies
by
ChrisSnyder
Regular Contributor III
12-22-2010
09:12 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
In v9.3 use the "GUID" field type keyword (even though the Help says it's not there it really is!). For example:
gp.AddField_management(t3FC, "GLOBAL_UID", "GUID")
Reply
0
Kudos
by
SuiHuang
Occasional Contributor II
12-30-2010
01:24 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Hi Chris:
Thank you for your note. Unfortunately I am using ArcGIS 9.2, is there any way to make it work?
Happy new year.
Reply
0
Kudos
by
ChrisSnyder
Regular Contributor III
01-03-2011
01:53 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
I don't have any machines still running v9.2, so I can't verify if the "GUID" keyword works there or not...
Time to upgrade?
Reply
0
Kudos
Post Reply