POST
|
Hi Anyone who can help me with this Please I am try to turn Layer on or off but I get error on this line .AddCode("lyr7.visible = False") System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component. Dim engine As IESRIScriptEngine = New ESRIScriptEngine With engine .Language = "python" .AddCode("import arcpy") .AddCode("mxd = arcpy.mapping.MapDocument(""CURRENT"")") .AddCode("df = arcpy.mapping.ListDataFrames(mxd)[0]") .AddCode("addLayer = arcpy.mapping.Layer(r" & "'" & LYR_file & "'" & ")") .AddCode("arcpy.mapping.AddLayer(df, addLayer, ""BOTTOM"")") .AddCode("lyr7 = arcpy.mapping.ListLayers(mxd, "", df)[0]"")") .AddCode("lyr7.visible = False")
... View more
05-11-2017
07:40 AM
|
0
|
0
|
378
|
POST
|
Hi I am using this sample to add layer to Arcmap , I add the layer then I move the layer to the bottom how can I add the layer to bottom without using MoveLayer map.AddLayer(gxLayerCls.Layer) map.MoveLayer(gxLayerCls.Layer, map.LayerCount - 1) https://community.esri.com/message/145930?commentID=145930#comment-145930
... View more
05-08-2017
06:18 AM
|
0
|
0
|
389
|
POST
|
Hi I have form in arcmap with PictureBox I need to select area in Map and get screenshot to PictureBox Any tips or sample how I can do this Thanks Sigster
... View more
01-19-2017
02:25 AM
|
0
|
0
|
774
|
POST
|
Hi I am new in this forum and Arcobject I need to search for Label in Arcmap Query What do I search for in this forum to get me started with this Or do anyone have sample how to Query for Label with VB.NET ? 1. Address or please Regards Sgear
... View more
06-18-2014
12:48 AM
|
0
|
0
|
368
|
Online Status |
Offline
|
Date Last Visited |
03-18-2024
03:51 PM
|