1
vote
2answers
181 views

VBA ArcGIS 9.3 Field Calculator: 'countif' across several fields

I have an attribute table with 15 columns that contain either a '0' or a taxonomy number. I would like a summarized column that shows the number of different species. location type1 type2 type3 ...
1
vote
0answers
96 views

InsertFeature on a versioned layer [vba]

I am writing an application that takes data from an Excel Spreadsheet and loads it into an ArcSDE feature class. The Feature class is editable within ArcMap, but I am having trouble inserting a ...
0
votes
0answers
134 views

Remove unused references in ArcGIS 9.3.1 vba

Can anyone suggest me how will I find and remove unused references used in a project done in ArcGIS 9.3.1 vb6. Thanks Khaled
1
vote
0answers
59 views

Joining a In_memory table with an SDE table

I have a in memory table that gets created, and want to join it to a table from SDE. I have tried the following code. Private Sub JoinTables(sdetable As ITable, inMemoryTable As ITable, joinField As ...
2
votes
1answer
407 views

Using IBufferConstruction to create single and multiple buffers (VBA and ArcObjects)

I need a bit of help with using the iBufferContruction interface, my overall goal is that the user clicks on the map, a graphic is created and then buffered,at multiple distances and then stored in a ...
1
vote
1answer
176 views

How do i get ArcObjects not to ignore a layer definition that has been set?

I am creating a simple text search application, where the user can enter an address search and the result appear in a listbox, which they can then select it and zoom to the address. Now the problem I ...
1
vote
1answer
607 views

How do I delete specific graphics on the map using arcobjects

I am writing a small application that allows the user to click on the map, and it will create 3 buffers (these are graphics using the IElement interface) at specified distances. What I want to do is ...
2
votes
3answers
2k views

Find polygon centroid with Python

I'm using ArcGIS 9.3 to find centroid of some polygon features. I'd like to do this in Python, but so far I can only find solutions with VBA. Can anyone provide some leads here?
3
votes
2answers
565 views

Adding VBA into a Python script generated by ModelBuilder

I have created a model that does a calculate field and have used VBA in the code block. But when I export it to Python, it doesn't work. Here is the VBA code: new_value = ...
0
votes
1answer
196 views

Creating a report from features that have been selected

I'm in need of some guidance, I have created an application where the users does the following workflow Enter Postcode Zoom to Postcode Create a buffer at specified distance Spatial Query to find ...
1
vote
1answer
308 views

Trouble trying to zoom to graphic (ArcGIS 9.3.1, VBA)

I am writing an application where one of the things it does is create a point then creates buffer (which is a graphic) at the specific point, what I want to do is when the buffer has been created, is ...
2
votes
1answer
2k views

Creating a featureclass in memory and adding to the map error

I have the code below, which is supposed to create a new featureclass in memory then add the FC to the map, but I get a Automation error when I use the createfeatureclass method Set pFC = ...
1
vote
0answers
184 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
3answers
572 views

How do I zoom to the overall extent of two (or more) selected features from two layers?

I am creating an application where the user picks a value from a combo box, the application then selects that feature and then selects the corresponding features from a second layer, (both selections ...
0
votes
1answer
305 views

Cannot run toolbox model from button

I have a button on my toolbar that when clicked, will run a particular model, I have copied the code from here ...
4
votes
1answer
471 views

Can you edit an SDE table via ArcObjects when not added to ArcMap

I have a table that is in SDE, what I want to do is in my userform click on the "Save" button, and the table will be edited even though it is not within the map document. Is this possible? I have ...
0
votes
0answers
448 views

Problem with calendar object in VBA (ArcGIS 9.3.1, Windows 7)

I have an application (that wasnt created by me), which was created on Win Xp, the user it was created for now has Windows 7. The userform has a calendar control, but when they try and run the ...
0
votes
0answers
143 views

How to make sure OnSketchFinished always works?

In my VBA application i have a listener setup that listens for OnSketchFinished, when the polygon is created a messagebox appears and then a userform. My problem is that the listener will work 90% of ...
2
votes
2answers
1k views

Collapse layers in ArcMap Table of Contents using ArcObjects

Can someone offer up a Christmas present here? I'm stuck on how to collapse all layers in my ArcMap projects (9.3). I've tried a few bits of sample code, but they all seem to fail for some reason or ...
3
votes
1answer
396 views

How can I get the coordinates of a grid cell?

How can I get the real coordinates (i.e. X and Y) of a given grid cell when I know its row and column position? Thanks Demetris
4
votes
1answer
604 views

Visual Basic editor command icon is always disabled

I recently installed ArcGIS 9.3 in a PC with Windows 7.0. I opened an existing mxd file within which I developed some toolbars for a project. Each icon of a toolbar has behind it a VBA and ArcObjects ...
2
votes
2answers
4k views

How to call a DLL file from VBA?

I have a DLL file that I have loaded and registered it in ArcGIS as a command icon. This icon launches a window where the user should do the following selections: an input file, a field name, select ...
1
vote
3answers
2k views

Calculate XY Coordinate with “CalculateField” tool

I used model builder to build a model which can calculate the XY coordinates and it's perfect! However, when I export it to VBscript and run it in VBA it crashes.... The error happens at ...
1
vote
0answers
48 views

How do I get non modal .dll things to work in ArcGIS 9 Education edition?

I dont know if I have installed it correctly on my computer. I think I need Non-Modal Forms Support in Visual Basic DLLs? and forcing VBA to load automatically in ArcGIS 9?
2
votes
2answers
728 views

Why is * .tlb not visible?

I've created a Visual Studio 08 Active X - MXCommands dll for a VBA button within ArcMap 9.3.1. I'm able to load and use the .tlb on my computer; however when I try it on my test computer the .tlb ...
2
votes
1answer
621 views

Disabling/overriding internal arcmap commands with vba

I am creating a template for ArcGis JTX. This is a mxd file, with a vba onload event handler which removes some functionality from vanilla ArcMap. I'm stumped on one problem: double clicking on a ...
2
votes
2answers
348 views

Can I use VB to search against an arcserver service in arcmap?

I've published a ArcServer service that is going to be consumed by out of the box, standard ArcGIS on the desktop. My question is, is it possible to write custom tools in VB to query layers from that ...
1
vote
1answer
733 views

I want create a crystal report in gis with writing code

I am working in ArcGIS 9.3.1 and I try to write code for creating a crystal report and work with it in VBA, but I recieved an error when the program arrived at this line of code: Dim pProj As ...