Skip to main content
  • 3,386 Posts
  • 13,843 Replies
3386 Posts
Replace Attributes by

I have 1 ESRI Shape polygon where each polygon has an ID which represents the object it belongs to. Some polygons belong to one object some belong to multiple objects. Each object is unique.    Geometry      ID                                                    NEW ID  1                   AAAAA                                             AAAAA-BBBBB  2                   BBBBB                                            AAAAA-BBBBB  3                   CCCCC                                           CCCCC-DDDD-EEEEE  4                   DDDDD                                           CCCCC-DDDD-EEEEE  5                   EEEEE                                            CCCCC-DDDD-EEEEE  6                   AAAAA-BBBBB                                AAAAA-BBBBB  7                   CCCCC-DDDDD                             CCCCC-DDDD-EEEEE  8                   CCCCC-DDDD-EEEEE                   CCCCC-DDDD-EEEEE

Python private parameter for ArcSDE version name

I'm not sure if this is more a Python, FME, or Esri question...  So here's the situation - a user has a MXD document open connected to an ArcSDE database with a version.  I have a workbench to write to this database but the user doesn't want to manually type in the ArcSDE version name as a user parameter (how it's currently setup).  Instead they want what ever version they are current connected to in the MXD to be used in the workbench.    I've scraped together some Python code I've found to create a text file of the current version name for an open MXD but I'd like to use this value (or maybe instead the returned value) as a new private parameter to use in the workbench.    Two issues right now:   It lists the version name for all layers (I just want one record)  It writes to a text file    Should it just return the version name so FME can use it as a parameter?  If so, how do I do this?  Here

Badge Winners

Show all badges

Community Stats

32,395
Posts
123,122
Replies
40,496
Members