Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a dbf with a field named "ppa" .the type of ppa is double. users enter number (for example 0.023) in a textbox and select the dbf in a combobox . then click Run and program multiply 0.023 with each number of ppa and save the result in another field . what objects do i need for programming ? How can i do this ?

share|improve this question
2  
Is this a GIS question at all...or a pure programming? You can read and edit a "DBF" in .Net/Java and other languages...why ask this question in a GIS forum? –  ujjwalesri Dec 6 '12 at 7:19
    
ppa is calculated from Geoprocessing in ArcGIS .I have to do it in ArcGIS –  wetland Dec 6 '12 at 7:23
    
But... What do you want? You want a script in python or maybe a add-in .. there are a lot of possibilities.. –  Katah Dec 6 '12 at 15:23
    
thanks katah . i want add-in –  wetland Dec 6 '12 at 15:26
add comment

1 Answer

Why not use a Python script tool or a ModelBuilder model for this? Take advantage of the existing geoprocessing framework and save yourself a lot of code.

All you would do is set up your parameters (input table, input float value) and set up Calculate Field in the script/model to use the entered parameters, then double-click the tool/model from ArcToolbox to bring up the user interface, enter the values and click OK. About as simple as it gets really.

Also, if you run the tool/model from an MXD containing tables, it will automatically populate the input table parameter dropdown box with a list of available tables in the document.

share|improve this answer
    
thanks @blah238 . i'm creating certainty factor model tool using c# and arcobject . it's a part of certainty factor model . –  wetland Dec 6 '12 at 16:04
1  
That doesn't mean much to me, so I guess the point still stands. Did you know that you can call geoprocessing tools, including custom script tools and models from ArcObjects? –  blah238 Dec 6 '12 at 17:15
    
See also: Using geoprocessing to develop applications –  blah238 Dec 6 '12 at 17:18
    
thanks blah238 i try it . –  wetland Dec 6 '12 at 17:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.