Doug: >Please help with something that I thought would be obvious but that >I'm missing somehow (I'm just learning GDSK): > >If I have a map with many layers in it, what is the command to tell >my script to change the active working layer? > >(I know, it should be obvious, but I can't find it even after >scrolling through the entire list of GDSK commands in the Maptitude >Help system.)
In the Help for GISDK, in "Calling GISDK Functions" is "Using GISDK Functions" where there are set of topics for Windows, Maps, etc. that describe GISDK functions by category. Under "Maps and Layers" is "The GISDK Current Layer" that describes what the current (or active, or working) layer is and how to work with it. Also, in naming GISDK functions, we try to follow the expected object-oriented name. For example, all of the Set functions set values and all of the Get functions get values. Layer functions will have Layer in their name, so SetLayer() is a good (and correct) guess for the function you are after, as Larry Manire noted. Rather than scrolling through the list of functions, try using the index to find your guess. Typing "setl" will get you close, and "SetLayer()" is right nearby. You can also type "Setting" and look for "Layers" as the subkeyword to find the group of functions (SetLayer(), SetLayerPosition(), etc.) that have to do with settings for layers. Note that with keywords we also try to be consistent, using the gerund (Setting, Getting, etc.) for actions and the plural, unless only the singular makes sense, for objects (Layers, Maps, etc., but Order and not Orders for SetRowOrder(), for example). I hope that these tips help. Peter ---------------------------------------------------------------- Peter H. Van Demark Director of GIS Products and Training Phone: 617-527-4700 Caliper Corporation Fax: 617-527-5113 1172 Beacon Street, Suite 300 E-mail: [EMAIL PROTECTED] Newton MA 02461-9926 Web site: http://www.caliper.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Maptitude/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/Maptitude/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/
