Hi Peppe, The Jython plugin was intended to simplify the creation of new tools, especially cursor tools. A simple example that is included in the startup.py file is:
lineTool = DrawCustomTool(featureDrawingUtil, maxClicks = 2, toolName = "Line Tool", geometryType = "linestring") toolbox.add(featureDrawingUtil.prepare(lineTool, 1)) This adds a new cursor tool to the Jython Toolbox called "Line Tool". It will accept only two clicks of the mouse and produces a geometry type of linestirng. The simplicity of the code is made possible by the DrawCustomTool class that is part of the Jython plugin. Many other example tools are included with the Jython plugin, including a fairly complete road digitizing tool. A good starting place for learning Jython is: www.jython.org/j-jython1-ltr.pdf and www.jython.org/j-jython2-ltr.pdf regards, Larry Becker On 8/17/07, Giuseppe Aruta <[EMAIL PROTECTED]> wrote: > Hi Larry > I am very interesting about the jython plugin. > I wander if other tools can be added to Jython plugin, > like a better text tool and other boolean operations( > substract, append, etc). > > Regards, > > Peppe > > > ___________________________________ > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: > http://it.docs.yahoo.com/nowyoucan.html > _______________________________________________ > jump-users mailing list > [email protected] > http://lists.refractions.net/mailman/listinfo/jump-users > -- http://amusingprogrammer.blogspot.com/ _______________________________________________ jump-users mailing list [email protected] http://lists.refractions.net/mailman/listinfo/jump-users
