Select to view content in your preferred language

Visual Studio Express - Addin creation

2083
2
05-19-2011 07:24 AM
by Anonymous User
Not applicable
Original User: bg3075

I am attempting to convert Peter Yurkosky's "addAcreage" ArcScript to an ArcGIS 10 Add-in, but facing some problems with it.  I am following Craig Gallant's Spring 2011 ArcUser article titled "Recycling VBA: Converting existing projects to ArcGIS Add-ins".  I am not an expert with VB / VBA, therefore, had a hard time determining which .NET objects to choose to replace those with errors. 

The Add-in loads correctly, but upon checking a check box the "GO" button (to execute) goes to an inactive state, and remains inactive.

Please, is anyone willing to assist with code here, in order to have an acreage / area Add-in to share within the ESRI community? 

I will attach the VBA and .NET scripts for comparison, as well as a Visual Studio template.
0 Kudos
2 Replies
PeterYurkosky1
Regular Contributor
Hi this is Pete. If you're using ArcGIS 10, you don't need my old VBA script anymore :). You can calculate the area of polygon features directly in ArcMap. Just create an "Acres" field in your feature class, right-click that field in the Attribute table window, and select "Calculate Geometry". You should be able to choose "acres" as your unit of measure, and off you go!
0 Kudos
by Anonymous User
Not applicable
Original User: bg3075

Hi this is Pete. If you're using ArcGIS 10, you don't need my old VBA script anymore :). You can calculate the area of polygon features directly in ArcMap. Just create an "Acres" field in your feature class, right-click that field in the Attribute table window, and select "Calculate Geometry". You should be able to choose "acres" as your unit of measure, and off you go!
Thanks for responding, Pete! 

I definitely agree with you.  Yes, here it comes...:-) But, I find your tool so much easier to populate these fields, you know?  This is one of several tools I found in the past, and still want to keep, in addition to it.
0 Kudos