Tagged Questions
1
vote
0answers
31 views
Calculating the Centroid of polygon in modelbuilder (VBA to Python) [closed]
Got an easy one, that's got me stuck.
I'm moving some models that were created in 9.3.1 to work in 10.
Part of the model is calculating the X coordinate of a polygon to a specified field.
The code ...
1
vote
2answers
102 views
Esri Technical Certification: Arc Gis Desktop
Esri Technical Certification, Arc Gis Desktop and Developer..
Where I can find books or course materials for esri arc gis desktop and developer certifications?
2
votes
0answers
92 views
Rotate Selected Features ArcGIS 10 - VBA
I am attempting to loop through polygon features and rotate pairs of features by a specified angle.
Pseudo logic:
1) Open up a standalone table in the map document and retrieve a unique identifier ...
1
vote
2answers
138 views
Get Number of Rows, ArcObjects (VBA 6.0)
I am sorry to bother with what may be an easy question for most of you but i am new to ArcObjects (VBA 6.0) in ArcMap (ArcGIS 10.0) and i am really struggling here. I am trying to count the number of ...
1
vote
1answer
92 views
ArcGIS10 VBA requires library references
I just upgraded from ArcGIS 9.2 to 10.0, and I'm trying to create some tools using VBA. It doesn't recognize any of the ArcObjects Classes, Interfaces, or Constants unless the reference includes its ...
2
votes
2answers
154 views
How do you create a button in ArcGIS and have it run code?
I'm brand new to ArcGIS and have only a year or two of programming experience. I know Java and a little C#. I have a Java app that processes geographical data. I need to have a button in ArcMap that, ...
3
votes
1answer
264 views
Need help translating small code block from VBA to Python
I need help from someone to translate a small piece of code from VBA to Python, due to the fact that the company I am working for has upgraded from ArcGIS 9.3.1 to 10.0 and VBA is no longer supported. ...
2
votes
2answers
777 views
How to overwrite a shapefile or feature class using arcobjects?
I can copy a shapefile but I want to be able to overwrite the copied shapefile to prevent multiple copies being created each time I run the program. I would also like for the saving and renaming of ...
0
votes
1answer
281 views
Focus ArcMap application Window VBA
Very simple question to ask, I haven't been able to figure it out up to now though...
How would you focus your ArcMAP application window using VBA?
I have a script that runs and selects polygons and ...
3
votes
2answers
327 views
Zoom to Polygon in Arcmap from Access
I am attempting to Zoom from an Access record to a specific polygon in ArcMAP but I can't seem to get the function to work.
The field in Access is identical to the field in arcmap. I.E. they both ...
1
vote
0answers
120 views
Relative paths in ArcScene document are broken if opened programmatically
When I open ArcScene document with relative paths programmatically from ArcMap, all those paths are broken. The location in source tab for broken layers is set to some different path like ...
2
votes
1answer
129 views
Cannot Set TOC View/Tab to Display with VBA?
I have some code from 9.3 that would check the CurrentContentsView.ContextItem to ensure that the TOC was in Display (or Drawing Order) view. If not it would set it to Display via:
If Not ...
1
vote
0answers
262 views
Error creating IPoint (ArcGIS 10) - Invalid use of New keyword (VBA)
I have some code I wrote in 9.3 that (mostly) works in version 10. I have a UIToolControl that buffers a user-input point based on a mouse click - nearly identical to the sample.
This used to work ...
10
votes
4answers
916 views
How can I find the farthest point from a set of existing points?
I have a set of points as a shapefile and I want to find (the coordinates) of a new point which will have the longest possible distance from each of the existing points. Is that possible? If yes, is ...
11
votes
2answers
1k views
How can I create weighted Thiessen polygons?
I have a point shape file and I create Thiessen (Voronoi) polygons programmatically using this scripting syntax:
CreateThiessenPolygons_analysis (in_features, out_feature_class, fields_to_copy)
...
3
votes
2answers
2k views
Polyline length calculation in ArcGIS 10/VB script
I used to run this length calc on my data in ArcGIS 8 and 9, and now it don't work in ArcGIS10. Can you tell me what I have done wrong?
Dim dbllength as double
Dim pcurve as icurve
Set Pcurve = ...
3
votes
3answers
641 views
VB/Python script to populate a field with maximum value among other fields
I am using ArcGIS 10. I have a little experience with python but i feel that python in ArcGIS is slightly different. VB will work fine as well.
Problem:
I have n different columns called 'percent_1', ...
6
votes
1answer
4k views
Install VBA on ArcGIS 10
What is the complete recipe for installing VBA for ArcGIS 10 Desktop?
The Esri help topic on this is incomplete. From the number of threads I found troubleshooting this I'm not the only one ...
2
votes
1answer
406 views
Adding an ILayer to IMap in Arcgis Server 10
I wanted to add ILayer to IMap, i think it has been added but problem is that it does not display it on the website.
I am running arcgis server 10, using visual web developer 2010 express edition ...
1
vote
1answer
606 views
Convert old ArcGIS 9 VBA tool to new Python script tool for ArcGIS 10
I have an ArcGIS .mxd file with an imbedded VBA script that is executed from a tool bar button. I would like to convert this VBA script tool to a python script tool for use in ArcGIS 10. Is that ...
2
votes
1answer
2k views
VBA to VB.NET (Visual Studio 10) Migration - ArcMap Focus
I will be migrating several VBA applications currently in ArcMap 9.3.1 to Visual Studio 10 in the near future, and wanted some feedback on the general migration steps listed below. I wanted to make ...
1
vote
0answers
231 views
topology rules for structuring topology data to get line feature as topoparent in topology graph
i Created topology graph of a polygon feature and i copied geometry of topology edges into line feature class,and topology nodes into point feature class
i created topology layer containing ...
3
votes
2answers
788 views
How can I load VBA customizations stored in a “document-level custom template” into a Map Document created from a “Normal.mxt” template in ArcGIS 10?
I have all kinds of custom tools that are called from UI Controls stored in a document-level map document (my custom template). In earlier versions of ArcGIS these were stored in the global-level ...