POST
|
Jay, Great. That helps a lot. Thank you very much. Jared
... View more
09-29-2011
07:05 AM
|
0
|
0
|
416
|
POST
|
Jay, Thanks for your help. I played around with this and it looks like I was able to get the add in to work. I am having a little trouble with the route name. I am not totally sure how to use this for the application. If I understand correctly, where the routename attribute is the same, ESRI creates a new route. The problem I am having is that the first point is going to be used as the start for every route, so Point A would be the start for the route going to Point B and for the route going to Point C. Is there a way to assign Point A to both the route that goes to Point B and the route that goes to Point C? Also, I am looking at using a traveling salesman approach to a more complicated form of this example. Is this going to keep other stops in mind when creating the route to each point? Thanks again for your help. Jared
... View more
09-26-2011
04:08 PM
|
0
|
0
|
416
|
POST
|
Hello, I am using Network Analyst to determine to create a route from Point A (the source) to destination Points B, and C. I would like to find out how many destination points each line segment is approaching. So for example, if you picture a Y with Point A at the bottom, Point B at the top left and Point C at the top right, I would like to return the bottom segment of the Y (or the stem of the Y) with an attribute of 2 and each of the top parts of the Y (the "\" and "/") would be attributed with a 1. Does anyone know of a good way to do this? Thanks for any help. Jared
... View more
09-25-2011
03:28 PM
|
0
|
4
|
763
|
POST
|
Hi, I am trying to export a selection out of a large file geodatabase table (over 7 million records - 4.1gb). The selection is only about 25 records or so. When I do this, via the code below, I get an automation error. I have used this code with smaller datasets and it works fine. I tried a very small extract of the dataset I am working with, to determine if this is more of a schema problem, and the export worked without a problem. Is there a size limit on the data these exports are referencing, or are there any other reasons why this may be happening? Thank you for your help! Regards, Jared Kaplan Private Sub FilInteraction(Voltage As String, Query As String) 'On Error GoTo ErrHnd: Dim pMxDoc As IMxDocument Dim pMap As IMap Dim pTableCol As IStandaloneTableCollection Dim pSATable As IStandaloneTable Set pMxDoc = ThisDocument Set pMap = pMxDoc.FocusMap Set pTableCol = pMap Set pSATable = pTableCol.StandaloneTable(CustomFunctions.FindTable("OBJECT_INFRA_INT")) 'Select records with appropriate circuit number Dim pTable As ITable Dim pQF As IQueryFilter Dim pTableSS As ISelectionSet Set pTable = pSATable.Table Set pQF = New QueryFilter 'Only filter voltage if no cicuit is given pQF.WhereClause = Query Set pTableSS = pTable.Select(pQF, esriSelectionTypeIDSet, esriSelectionOptionNormal, Nothing) 'Create new table and workspace 'Define input table Dim pTableName As ITableName Dim pDataset As IDataset Set pDataset = pTable 'MsgBox (pDataset.Name) Set pTableName = pDataset.FullName Dim pInDsName As IDatasetName Set pInDsName = pTableName Dim pOutTableName As ITableName Set pOutTableName = New TableName Dim pOutDataName As IDatasetName Set pOutDataName = pOutTableName pOutDataName.Name = "temp_int" Dim pWorkspaceName As IWorkspaceName Set pWorkspaceName = New WorkspaceName pWorkspaceName.PathName = "c:\" pWorkspaceName.WorkspaceFactoryProgID = "esriCore.shapefileworkspacefactory.1" Set pOutDataName.WorkspaceName = pWorkspaceName 'Export Data Dim pExportOp As IExportOperation Set pExportOp = New ExportOperation pExportOp.ExportTable pInDsName, Nothing, pTableSS, pOutDataName, 0 'Ask user if they want to continue if there are more than 10000 possible returns ErrorKey = CustomFunctions.SelContinue(pTableSS.Count) Exit Sub 'ErrHnd: 'MsgBox "Error " & Err.Number & ": " & Err.Description 'ErrorKey = True End Sub
... View more
04-21-2010
11:21 AM
|
0
|
0
|
439
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|