Hi Just an idear, I have not tested it but i think it would worke
1. create your gui wit some menigfull names, and assign it to a dummy macro 2. create a lookup tabel translating between the input names and fme names 3. Call the lookup table using a static functoin evaluation to assign the valeu to you CoordSys macro like this MACRO UserCoordSys $[ @Lookup(csList,$(guiName)) ] NB. The gui commands in fme are wery primitiv, has anybody tryed to us tk ( the gui extension to tcl ) to create a interface to a fme mapping file, either as part of the mapping file or as a tcl/tk script evaluated by fme with this we could create a mutch more dynmai interface to fme, reading the content of a ini file, directoryes etc on runtime, or we could change the dialog depending of the choices the usre make Peter Laulund >From: "clambert_aamh" <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: [email protected] >Subject: [fme] Re: GUI CHOICE option name assignment >Date: Tue, 18 Apr 2006 05:20:30 -0000 > >Have solved this problem by using for example MGA94-56 instead of >EPSG:28356 - which appears to be the same coordinate system just >grouped within AUSNZ instead of EPSG > >What you suggested below is exactly what i wanted to do, however >replacing the coordinate system code with other text content without >a coordinate system definition means that at the line > >IGDS_IN_COORDINATE_SYSTEM $(_IN_COORDSYS) > >the coordinate system is not understood. So what i was thinking was >that i would need define descriptive text by assigning it to the >coordinate system code but was not sure how to do it > >ie OtherTextContent1 == EPSG:28356 > OtherTextContent2 == EPSG:28355 > > GUI CHOICE _IN_COORDSYS OtherTextContent1%OtherTextContent2 Input >Coordinate System: > > IGDS_IN_COORDINATE_SYSTEM $(_IN_COORDSYS) > >Or have i answered my own question here? Is == used for assignment? > > > >--- In [email protected], "mark2atsafe" <[EMAIL PROTECTED]> wrote: > > > > If you're creating a GUI in this way why not simply replace the > > EPSG:xxxxx part in the GUI CHOICE line with the content you'd like > > instead? > > > > Just be careful not to include a space in any of the choices since >I > > don't believe that is supported. > > > > In FME2007 we're hoping there'll be a transformer that lets you >create > > a pick list in this way w/o resorting to editing the header. > > > > Mark > > > > Mark Ireland, Product Support Engineer > > Safe Software Inc. Surrey, BC, CANADA > > [EMAIL PROTECTED] http://www.safe.com > > Solutions for Spatial Data Translation, Distribution and Access > > > > --- In [email protected], "clambert_aamh" <c.lambert@> wrote: > > > > > > Hello > > > > > > I have created a GUI which includes a GUI CHOICE to select >between > > > coordinate system names. However some of the listed coordinate > > > systems are not easily identifiable from the FME Coordinate >System > > > Names such as EPSG:28351 which represent GDA94-MGAZ56 - can you > > > advise of a way i might assign a more meaningful name to include >in > > > my list? > > > > > > ================================================================= > > > # Input Coordinate System > > > > > > GUI CHOICE _IN_COORDSYS EPSG:28351%EPSG:28352%EPSG:28353% >EPSG:28354% > > > EPSG:28355%EPSG:28356 Input Coordinate System: > > > __ > > > > > > IGDS_IN_COORDINATE_SYSTEM $(_IN_COORDSYS) > > > ================================================================= > > > > > > Many Thanks, > > > Carly > > > > > > > > > > > > > > >Get the maximum benefit from your FME, FME Objects, or SpatialDirect via >our Professional Services team. Visit www.safe.com/services for details. >Yahoo! Groups Links > > > > > > _________________________________________________________________ Få de bedste søgeresultater med MSN Search: http://search.msn.dk Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our Professional Services team. Visit www.safe.com/services for details. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
