Thanks for the input.  I'm a little concerned about the "etc" part of your
answer but will give this a try.

 

Thank you

 

Gary

 

From: [email protected] [mailto:[email protected]] On Behalf
Of [email protected]
Sent: October-13-11 7:53 AM
To: [email protected]
Subject: RE: [Maptitude] GetArea() Add-in

 

  

Hi Gary,

 

Use a while loop to loop through the areas, eg:

 

layer=(your layer name)

tot=GetRecordCount(layer, )

n=1

rh=GetFirstRecord(layer+'|', )

CreateProgressBar(,)

while rh <> null do

UpdateProgressBar('xxxx.',r2i(n/tot*100))

 

arArea=GetArea(rh2id(rh))

etc.

 

rh=GetNextRecord(layer+'|',, )

n=n+1

end

DestroyProgressBar()

 

Larry Manire

 

 

From: [email protected] [mailto:[email protected]] On Behalf
Of exceedanalysis
Sent: Wednesday, October 12, 2011 10:41 PM
To: [email protected]
Subject: [Maptitude] GetArea() Add-in

 

  

I'm relatively new to Maptitude and need help in building an GISDK add-in.
The "GetArea()" function does exactly what I want except that I need it to
cycle through all the polygons in a file and save the results into another
file. As it stands, the function only does one polygon at a time. I do not
have much experience programing and am looking for possibly another add-in
that I would be able to modify relatively easy to fit my needs or some other
solution?

Gary 



Reply via email to