POST
|
Dave, I think I found an answer for you (sorry for the late reply). I had the same issue and found a 2004 entry by Ghislain Prince in the ARCHIVE FORUMS. Here's the thread: Run EXE at the start of a Model. I was able to create a preconditon derived from a first-to-run Python script in the model, and I successfully ran a portion of my model. Scott PS Link isn't working. Here's the entry: Subject Re: Run EXE at the start of a Model Author Ghislain Prince Date May 31, 2004 Message Hi Kevin, preconditions are based on variables (circles in model builder). Currently your tool (EXE) has no parameters or variables. What you want to do is add a parameter to it. To do so: 1) Right click your exe in ArcToolbox 2) select PROPERTIES 3) click in the grid and add a parameter with the following properties - Name: type whatever you want here - Data Type: Boolean - type: Derived - Direction: Output - Default: TRUE - leave the remaining properties to their defaults Now drop this tool into your model again, you'll notice that the tool now has a variable (cicle) to it's right (output). So now you can specify this variable as a PRECONDITION to other processes. So what actually happens when the model runs: once you've added a precondition on the output of your script the next process will not run until your script (EXE) has been run. Once your script has been run, the next process will check the variable and see that it is TRUE (since that's the default), so then the next process will run. Ghislain Prince Ghislain Prince ESRI
... View more
07-30-2014
11:24 AM
|
0
|
0
|
192
|
POST
|
Thanks again! It's funny that you can use the IDisplayTransformation Interface to change the Map Units, but you can't use it to change the Display Units. There are no members for it. Also, I might be missing a Reference, because I get an error on the esriMeters Constant. That's why I use the Constant Value, instead. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//004200000030000000
... View more
01-22-2014
02:35 AM
|
0
|
0
|
361
|
POST
|
Got it! I had to replace this:
Dim pFact As IWorkspaceFactory = New AccessWorkspaceFactory
with this:
Dim pFact As IWorkspaceFactory = New FileGDBWorkspaceFactoryClass()
... View more
12-20-2013
09:30 AM
|
0
|
0
|
143
|
POST
|
OK, thanks! I'll create another string to append all the names.
... View more
12-20-2013
05:35 AM
|
0
|
0
|
254
|
POST
|
Hi, is there a way you can share the code that adds the layers in your combobox please? Also how can you make the combobox selects by default the first layer in the list?
... View more
04-03-2014
06:55 PM
|
0
|
0
|
326
|
POST
|
Using VB.NET, how can I add a Layer at a certain position in the TOC? I'm able to add a layer, but I'm having trouble changing its index. In this example, I'm trying to send the added layer at the bottom of the TOC. The part in red is where I'm having trouble.
Dim pMap As IMap = My.ArcMap.Document.ActiveView
Dim lyr As ILayerFile = New LayerFile()
Dim parcels As String = "D:\Parcels.lyr"
If System.IO.File.Exists(parcels) Then
lyr.Open(parcels)
Dim pLayer As ILayer = lyr.Layer
pMap.AddLayer(pLayer)
pMap.setLayerIndex(pLayer, pMap.LayerCount + 1)
Else
MsgBox(parcels + " cannot be found")
End If
... View more
12-06-2013
08:50 AM
|
0
|
0
|
421
|
POST
|
"Size String" is as you say the width of the actual combobox on the toolbar "Item Size String" is the width of it's drop down Gosh, so simple! Thank you!
... View more
12-05-2013
05:37 AM
|
0
|
0
|
374
|
POST
|
Thanks guys, I got it to work with IRow.
Dim row As IRow
Dim subdivisionTable As ITable = GetTable(tableName, pMap)
Dim queryFilter As ESRI.ArcGIS.Geodatabase.IQueryFilter = New ESRI.ArcGIS.Geodatabase.QueryFilterClass()
queryFilter.WhereClause = "PID = '163922'"
Dim cursor As ESRI.ArcGIS.Geodatabase.ICursor = subdivisionTable.Search(queryFilter, False)
Dim panField As Integer = subdivisionTable.FindField("PAN")
row = cursor.NextRow
If panField = -1 Then
MsgBox("field doesn't exists")
Return
Else
MsgBox(row.Value(panField))
End If
... View more
07-18-2012
06:41 AM
|
0
|
0
|
332
|
POST
|
James - I appreciate your concern, but the reason we named the field this way, is because our Archives make reference to File Numbers (old system). For consistency, we named the field this way. This field is not the Unique ID, it's just a reference number to the paper documents, that are in the Archives. I might be new at .NET, but I've been managing Geodata for 15 years 😉
... View more
07-16-2012
04:29 AM
|
0
|
0
|
345
|
POST
|
Why not just use the feature's Shape property to get a geometry, which has the GeometryType property?
... View more
07-05-2012
08:37 AM
|
0
|
0
|
341
|
POST
|
You can check the edit state by using IEditor::Editstate. An example to check whether an edit session has been started on the selected map: If My.ArcMap.Editor.EditState <> ESRI.ArcGIS.Editor.esriEditState.esriStateEditing then As for ArcMap crashing, do you use Try..Catch exception handling?
... View more
06-28-2012
10:21 AM
|
0
|
0
|
323
|
POST
|
I think first you need to refer one or two same logical projects. And after that check following link which may be helpful to set proper toolbar button path. http://www.scribd.com/doc/94992300/117/Tool-Path-Simulation
... View more
07-10-2012
12:17 AM
|
0
|
0
|
188
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|