POST
|
I only need to remove one button of a group/menu, the rest of the menu should remain. But thank you for your tip.
... View more
04-25-2019
07:03 AM
|
0
|
0
|
34
|
POST
|
I am a real stickler for documentation. I also found other confusing articles here: https://community.esri.com/thread/252078-confused-about-proconcepts-articles
... View more
04-25-2020
08:31 PM
|
0
|
0
|
78
|
POST
|
Got it: Snippet Public Shared Function GetAGSFeatureLayer( ByVal sURL As String ) As IFeatureLayer Dim pAGSConnectionFactory As IAGSServerConnectionFactory Dim pConnectionProps As IPropertySet Dim pAGSConnection As IAGSServerConnection Dim enumServerObjectName As IAGSEnumServerObjectName Dim pServerObjectName As IAGSServerObjectName3 Dim pLayerFactory As ILayerFactory Dim pEnumLayer As IEnumLayer Dim pLayer As ILayer Dim pCurrentLayer As ILayer Dim pCompositeLayer As ICompositeLayer Try pConnectionProps = New PropertySet pConnectionProps.SetProperty( "URL" , sURL) pAGSConnectionFactory = New AGSServerConnectionFactory pAGSConnection = pAGSConnectionFactory.Open(pConnectionProps, 0) enumServerObjectName = pAGSConnection.ServerObjectNames enumServerObjectName.Reset() pServerObjectName = enumServerObjectName.Next Do Until pServerObjectName Is Nothing If pServerObjectName.Type.Equals( "FeatureServer" , StringComparison .OrdinalIgnoreCase) Then pLayerFactory = New FeatureServerLayerFactory pEnumLayer = pLayerFactory.Create(pServerObjectName) pLayer = pEnumLayer.Next() Do Until pLayer Is Nothing If TypeOf pLayer Is ICompositeLayer Then pCompositeLayer = pLayer For i As Integer = 0 To pCompositeLayer.Count - 1 pCurrentLayer = pCompositeLayer.Layer(i) If TypeOf pCurrentLayer Is IFeatureLayer Then Return DirectCast (pCurrentLayer, IFeatureLayer ) End If Next End If pLayer = pEnumLayer.Next() Loop End If pServerObjectName = enumServerObjectName.Next Loop Catch ex As Exception logger.Error( "GetAGSFeatureLayer" , ex) End Try Return Nothing End Function
... View more
10-19-2016
02:57 AM
|
1
|
0
|
25
|
POST
|
I have found a workaround: That's how you store data in the Project-Settings: https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Custom-settings#step-6-implement-the-module-class-overrides-to-read-and-write-the-new-project-settings This way you even can store JSON or XML strings in the APRX-File. Furthermore you can use the URI Property of a layer as a unique identifier: https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic11759.html
... View more
04-24-2019
06:56 AM
|
0
|
0
|
24
|
POST
|
Hello, I'm creating a ToolBox with an Linear Unit Input Parameter. And I want to use this Parameter with the "geometry.buffer(distance)" function (not the arcpy . Buffer_analysis Tool ). How do I change the Unit of the Input Parameter to the Unit of the Geometry-Object? Is there a Conversion Tool or somthing? Cheers Mickey
... View more
12-02-2014
06:14 AM
|
0
|
0
|
1364
|
POST
|
It appears to be a bug. We have an application that uses the map control to display a preview. Even though the map shown in the map control is the map from the document, we create a deep copy of the map object before assigning it to the map control. I usually keep my scroll bars in ArcMap turned off. If I turn them on, switch to layout view then back to data view, the scroll bars remain visible. If I do the same thing with our dialog open, the scroll bars disappear when I return to data view. The map control has its scroll bars turned off. I'm not really sure why ArcMap would be picking up that property setting but it apparently does.
... View more
05-28-2014
06:42 AM
|
0
|
0
|
10
|
POST
|
No, these are two different machines. No upgrad was made. My final solution: I split my script in two parts: If I'm allowed to delete a FeatureClass I use: if arcpy.Exists(__toFCpath): arcpy.Delete_management(__toFCpath) arcpy.Copy_management(__fromFCpath, __toFCpath) And if i'm not allowed to delete a FeatureClass I use: arcpy.DeleteRows_management(...) arcpy.Append_management(...) and arcpy.AddIndex_management(...) to copy the Indexes. But be aware of Bug NIM084818 if you are using ArcGIS 10.2.0 or lower: The Append geoprocessing tool fails to append field values for fields with field names that have 29 or more characters. Cheers. Mickey
... View more
05-12-2014
06:35 AM
|
0
|
0
|
7
|
POST
|
Hello, I'm trying to change the data source of layers in an mxd-file with a python script and found several possible solutions: e.g. 1. mxd.replaceWorkspaces(...) 2. lyr.replaceDataSource(...) Both data sources (the new and old one) are an ArcSDE (Oracle), but the Owners are different. No matter which Function (1 or 2) i use, the data source change works fine but an other problem occurs: The symbology of one Layer was set to default: Symbologytype of the Layer: UNIQUE_VALUES And the Value Field is an other than before the data source was changed. I have no idea why. The new FeatureClass has the same name as the old one (except the owner-part in front of the Featureclass name) and the Value Field also exists in the new FeatureClass. Any idea what could be the reason for this? If I open the mxd-file in ArcMap and set a new datasource (Properties\Source\Set Data Source...) the same problem occurs --> the symbology is gone 😞 (I have exported the Layer and attached it as a zip, so you can try to change the data source, yourself) Thanks Mickey
... View more
04-08-2014
06:12 AM
|
0
|
0
|
290
|
POST
|
Hello, if I double click on a Node in an ITOCControl (ITOCControlEvents.OnDoubleClick Event) it toggles the Node (+ to - or - to + ). But I just want to open a Form. Is it possible to turn off this "toggle-behaviour"? Cheers
... View more
10-24-2013
05:16 AM
|
0
|
0
|
207
|
POST
|
Found it! You can cast IGroupLayer into ICompositeLayer.
... View more
07-17-2013
11:34 PM
|
0
|
0
|
7
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|