Tagged Questions
-1
votes
0answers
39 views
Need help with VBA code for filling a table
Bonjour a tous;
je travail VBA dans arcgis 9.3
j'ai crée un formulaire avec une liste déroulante et une liste texte et autre controls:
quand je sélectionne un type de station dans la liste ...
1
vote
0answers
31 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 ...
1
vote
0answers
34 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
242 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
110 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
217 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
1k 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
392 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
151 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
238 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
919 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
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
3answers
387 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
258 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
338 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
336 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
93 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
666 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
293 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
430 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 ...
1
vote
2answers
2k 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
1k 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
43 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
1answer
483 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
324 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
2answers
637 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 ...