|
POST
|
Hello, I am using two network datasets: 1. street network dataset covering whole Switzerland 2. a clipped version of above covering only a part of Switzerland With the two network datasets, I am calculation a route using the same input locations. The results are as follows: 1. With the street network covering whole Switzerland, there are unreached locations 2. With the clipped version everything is fine, there are no unreached locations I don't understand why there are unreached locations in the larger network because the two street networks are exactly the same in the area of the route (= the clipped area) Thanks a lot for your answers in advance
... View more
03-14-2014
02:11 AM
|
0
|
8
|
1783
|
|
POST
|
Hello Scott, this is exactly what I was looking for! Barbara
... View more
08-23-2013
03:23 AM
|
0
|
0
|
797
|
|
POST
|
Hello, when a user installs an Addin on a computer, it is only visible for this user. Is it possible to install it for all users on a computer? Thanks, Barbara
... View more
08-06-2013
02:56 AM
|
1
|
5
|
5346
|
|
POST
|
Hi Sajid, you can only rotate graphic elements using this rotate tool. In an edit session, you are changing features, not graphics. Barbara
... View more
08-06-2013
01:14 AM
|
0
|
0
|
372
|
|
POST
|
Hi Mody, I guess that it is IFeatureSelection. Barbara
... View more
08-06-2013
01:01 AM
|
0
|
0
|
422
|
|
POST
|
You could do the following: - First, you create a layer based on your xy data: http://help.arcgis.com/en/sdk/10.0/vba_desktop/conceptualhelp/index.html#//00010000010r000000 - Then, you export your layer to a shapefile: http://support.esri.com/en/knowledgebase/techarticles/detail/28109 Does this help?
... View more
08-05-2013
06:54 AM
|
0
|
0
|
6127
|
|
POST
|
Hello, I have a similar problem. I can not assign keyboard shortcuts using IAccelerator. I even can't assign keyboard shortcuts using the ArcMap GUI (Customize - Keyboard...). I mean, I can assign them, but they don't work. Barbara
... View more
05-29-2013
11:37 PM
|
0
|
0
|
272
|
|
POST
|
Hello, what type of layer do you query (IFeatureLayer feature_layer = (IFeatureLayer)pMap.get_Layer(0)) ? Is it a point layer? If so, you will never get the exact point using this query. You will have to apply a scale dependent buffer to your mouse point, e.g.: IEnvelope env = new EnvelopeClass();
env.SpatialReference = pMap.SpatialReference;
env.PutCoords(x - ..., y - ..., x + ..., y + ...);
...
spatial_filter.Geometry = env; Does this help? Barbara
... View more
05-21-2013
03:46 AM
|
0
|
0
|
666
|
|
POST
|
Hello Mark, try to run the commented out code, this may work: m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] { esriLicenseProductCode.esriLicenseProductCodeBasic, esriLicenseProductCode.esriLicenseProductCodeStandard, esriLicenseProductCode.esriLicenseProductCodeAdvanced },
new esriLicenseExtensionCode[] { }); Barbara
... View more
05-21-2013
02:34 AM
|
0
|
0
|
1061
|
|
POST
|
Hi Deona, look at this: http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//00480000024p000000 and: http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000p7w000000 esriProductCodeViewer --> esriProductCodeBasic esriProductCodeEditor --> esriProductCodeStandard esriProductCodeProfessional --> esriProductCodeAdvanced Barbara
... View more
05-21-2013
01:27 AM
|
0
|
0
|
502
|
|
POST
|
Hi Tolga, you can find a code sample to query a table or feature class at: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Querying_geodatabase_tables/000100000146000000/ A code sample to query joined data is at: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Joining_data/0001000002zw000000/ Code in VB:
Dim pMxDoc As IMxDocument
Dim pMap As IMap
Dim pFeatLayer As IFeatureLayer
Dim pFeatClass As IFeatureClass
Dim pDataset As IDataset
Dim pFeatWorkspace As IFeatureWorkspace
Dim pQueryDef As IQueryDef
Dim pCursor As ICursor
Dim pRow As IRow
Dim pName As String
Dim pNameIndex As Integer
' Get feature class
pMxDoc = My.ArcMap.Document
pMap = pMxDoc.FocusMap
pFeatLayer = pMap.Layer(0)
pFeatClass = pFeatLayer.FeatureClass
' Create query definition (for joined attributes)
pDataset = pFeatClass
pFeatWorkspace = pDataset.Workspace
pQueryDef = pFeatWorkspace.CreateQueryDef
pQueryDef.Tables = "Punkte, Names" ' Name of joined tables
pQueryDef.SubFields = "Names.Name" ' Field I want tow query
pQueryDef.WhereClause = "Punkte.OBJECTID = Names.ID" ' Join condition
pCursor = pQueryDef.Evaluate()
pNameIndex = pCursor.FindField("Names.Name") 'Index of field I want to query
' Step through rows (features)
pRow = pCursor.NextRow()
While Not pRow Is Nothing
pName = pRow.Value(pNameIndex)
'Add name to combo box
pComboBox.Items.Add()
pRow = pCursor.NextRow()
End While
... View more
05-03-2013
04:35 AM
|
0
|
0
|
409
|
|
POST
|
Hi, first you have do define the header for your listView: For i = 0 To pFeature.Fields.FieldCount - 1 strFieldname = pFeature.Fields.Field(i).Name pColHeader = New ColumnHeader() pColHeader.Text = strFieldname Me.Listsheet.Columns.Add(pColHeader) Next Then you can add the items and the subitems. The error you made is that you only filled in the items (these only fill the first column). To fill in the subsequent columns, you need to add subitems: Dim pListItem As ListViewItem pListItem = Me.Listsheet.Items.Add(pFeature.Value(0)) ' fill in value in first column For i = 1 To pFeature.Fields.FieldCount - 1 pListItem.SubItems.Add(pFeature.Value(i)) ' fill in values in all remaining columns Next I hope this helps. Kind regards, Barbara
... View more
05-02-2013
12:29 AM
|
0
|
0
|
745
|
|
POST
|
Hi Madam, here is the code in C#: UID uid = new UID();
uid.Value = "{AB073B49-DE5E-11D1-AA80-00C04FA37860}";
ICommandItem cmdItem = application.Document.CommandBars.Find(uid, false, false);
cmdItem.Execute(); Instead of specifying the GUID, you can also specify the name, e.g. uid.Value = "esriArcMapUI.SelectTool" You can find this information at: http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//00010000029s000000 Barbara
... View more
04-30-2013
12:24 AM
|
0
|
0
|
795
|
|
POST
|
Hello, I know how to listen to edit events, but I would like to fire an edit event myself. Does anyone know how to do this? I tried the following (in C#): UID editorUid = new UIDClass();
editorUid.Value = "esriEditor.Editor";
IEditor editor = _app.FindExtensionByCLSID(editorUid) as IEditor;
IEditEvents editEvents = editor as IEditEvents;
if (editEvents != null)
{
editEvents.OnCurrentLayerChanged();
} However, the QI from IEditor to IEditEvents doesn't work, editEvents is null. Thanks, Barbara
... View more
04-22-2013
02:40 AM
|
0
|
0
|
500
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-06-2013 02:56 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|