/*Kjartan and Armando,

Yes, the problem was indeed solved by Kjartan in the must direct and simple way. Congratulations! I believe that Armando's comment is quite pertinent, and even for non programmers guys like me I believe that there is a lesson on it: It is possible to use GISDK functions directly on a formula field and enhance the power of the available functions listed on the Formula Builder. That I have never realized, not until this moment.

Thanks both of you very much. But Armando, as a stubborn person, I will like to have your macro working.

Cheers,

Reinaldo*/

------------------------------------------------------------------------

Armando Scalise wrote:
Often times, when faced with a problem, we programmers dive into coding and forget that a simpler solution to a problem is available using the standard interface.


Kjartan email is an opportune reminder of the kind of habits programmers pick up during in our job :) :)

As a rule, before coding a loop through the records of a layer or dataview, see if the same result can be achieved in terms of one or more formula fields.

Cheers



On Mon, Feb 7, 2011 at 9:10 AM, Kjartan Stefansson <[email protected] <mailto:[email protected]>> wrote:

    You can open a dataview on the area layer and create a formula
    field with the expression:

       GetPerimeter(ID)

    Just like the Area field in the dataview, the units of this
    formula field will be your current map preferences.  Isn’t this
    what you want?

    -Kjartan

    *From:* [email protected]
    <mailto:[email protected]>
    [mailto:[email protected]
    <mailto:[email protected]>] *On Behalf Of *Reinaldo Paul
    Pérez Machado
    *Sent:* Friday, February 04, 2011 7:02 PM
    *To:* Maptitude Discussion List
    *Subject:* [Maptitude] How to calculate perimeter?

    */Hello,

    Please, I would like to know how is it possible to get the
    corresponding perimeter of a bunch of polygons in a geographic files?

    Thanks in advance. Any aid would be very much appreciated. Cheers,

    Reinaldo/*




--
Armando Scalise

Reply via email to