|
POST
|
Tim, I believe the way you are doing it is the best way, calling the geo-processing tool. Have you tried running the geo-processing package layer tool on the layer from ArcMap? If you do and its some dataset you had just loaded into ArcMap then you get a 001115 error which states you have not set the description. I suspect this is your problem, you need to set a description for the layer before you can package it up. You can use the interface ILayerGeneralProperties to alter this. Duncan
... View more
12-15-2013
09:31 AM
|
0
|
0
|
1150
|
|
POST
|
Are you asking to access a shapefile that is already loaded in the map document or as direct access to a dataset on some hard drive somewhere?
... View more
12-14-2013
08:56 AM
|
0
|
0
|
507
|
|
POST
|
Why is the gxdialog not working? What makes you think that? Is there an error message? If you look at the archived forum some people suggest installing the interop extension to make it work but that was for 9.1...
... View more
12-13-2013
01:32 PM
|
0
|
0
|
919
|
|
POST
|
If you look at the help for this tool, the distance takes a number but you have entered a string with units.
... View more
12-13-2013
06:26 AM
|
0
|
0
|
829
|
|
POST
|
If you want to interact with the map window you need to be using a Tool AddIn button not the Button AddIn which does something once you clicked on it.
... View more
12-13-2013
04:15 AM
|
0
|
0
|
1444
|
|
POST
|
Have a look at this help page, this may answer your question?
... View more
12-13-2013
04:09 AM
|
0
|
0
|
1016
|
|
POST
|
Here is some code that gets you the full path to a shapefile that you intend to create: Dim pEnumGXObject As IEnumGxObject = Nothing
Dim pGXDialog As IGxDialog
pGXDialog = New GxDialogClass
Dim pGxObjectFilter As IGxObjectFilter
pGxObjectFilter = New GxFilterPolylineFeatureClasses
With pGXDialog
.ObjectFilter = pGxObjectFilter
.Title = "Set name of merged functional network"
.RememberLocation = True
.AllowMultiSelect = False
.ButtonCaption = "OK"
.DoModalSave(Me.Handle.ToInt32)
End With
Dim pGXObject As IGxObject
pGXObject = pGXDialog.FinalLocation
Dim s, fp As String
s = pGXDialog.Name
If Microsoft.VisualBasic.LCase(Microsoft.VisualBasic.Right(s, 4)) <> ".shp" Then
s = s & ".shp"
End If
fp = pGXObject.FullName & "\" & s
... View more
12-04-2013
01:10 AM
|
0
|
0
|
1087
|