DOC
|
HEY, Thanks for using. Please refer to: World Stress Map: Data
... View more
04-13-2020
09:34 PM
|
1
|
0
|
4396
|
POST
|
Thanks for your response Hornby. The mxDocument defined as : Dim mxDocument as IMxDocument. Sorry I mistyped the 'MxDocument.Maps.Add(pmap)' as 'MxDocument.Add(pmap)' above in which MxDocument.Maps is a IMaps object. Another abnormal is that, in pagelayout view, it's property can be displayd in which it's name is not the 'New DataFrame' but 'Layers' who is the first Data Frame's name.
... View more
05-22-2019
05:39 PM
|
0
|
2
|
1167
|
POST
|
Hi all, I used .NET snippet to add a data frame into ArcMap as bellow: ... Dim pmap As IMap=mxDocument.maps.Create() pmap.Name="New DataFrame" mxDocument.Add(pmap) pmap.AddLayer(pLayer) mxDocument.UpdateContents() mxDocument.ActiveView = pmap mxDocument.ActiveView.Refresh() ... The newly created data frame 'New DataFrame' and it's features can be displayed in ArcMap, but it seems not a 'Normal' DataFrame. It can't be double clicked to show property, it doesn't shown in pagelayout and even can't be removed in ArcMap interface.. Maybe what code is missed?
... View more
05-17-2019
09:10 PM
|
0
|
4
|
1499
|
POST
|
Yes, the licence should be checked in tool validation and no need to reinput the parameters.
... View more
05-06-2019
03:43 AM
|
0
|
0
|
887
|
POST
|
Thank you Dan. My problem can be partly solved by your indication that the tool license can be judged by CheckProduct(). But seems ListTools() give no difference even if a desktop has no a tool license, why? Another question is how to return to my toolbox input interface if no a license rather than ending the tool with that I must reinput tool's parameters again.
... View more
05-06-2019
02:45 AM
|
0
|
2
|
887
|
POST
|
Hi All, In Python toolbox, I'd like to check whether an user has 'Cartography' license. If yes, the tool continue to run and return to tool interface if not. How the snippet will like? Thank you in advance.
... View more
05-06-2019
12:11 AM
|
0
|
4
|
987
|
POST
|
Thank you Kmieliauskas. Where can I change the setting of Specific version (for VS 2010) ? Another option is .Net framework version, how to set it, is it important for distribution?
... View more
04-29-2019
02:29 AM
|
0
|
3
|
945
|
POST
|
Hi, I am a newer in ArcObjects. I developed an ArcObjects toolbar using Visual Studio. It generated .dll, .pdb and .xml file in folder 'debug' after 'build solution' and the toolbar can be registered and used in my machine. My question is: how to distribute the toolbar? ie, make it available in another machine which is different Windows platform, 32 bit or 64 bit, win 7 or win 8, ArcMap 10.1 or ArcMap 10.5, and what files should be provided to others? Thanks in advance.
... View more
04-27-2019
08:14 PM
|
0
|
5
|
1108
|
POST
|
Yes we can encrypt a python toolbox and save it as a 10.1 one, but seems it will not run in 10.1, even opening the folder of the tool will make desktop to shut down in my machine. The solution in 10.1 platform I think is: 1. Compile your .py as .pyc to avoid editing, but easy be decompiled. 2. How many lines is there in your script? Import the script after optimizing your code, deleting all of unneeded snippet, space lines and comments , then test if you can wait for it's response not smashing your mouse. 3. Rewrite it in AO. 4. Tool license, It's the most effective protection.
... View more
03-06-2019
05:25 PM
|
2
|
1
|
1660
|
POST
|
Maybe your script is too large? If that, don't try to import the script. It will give your user a bad using experience by the slow responding of the tool. Then the best way is writing the toolbox as a pyt form if your user can update his platform.
... View more
03-06-2019
02:10 AM
|
2
|
4
|
1660
|
POST
|
You can encrypt it to a .pyt file, but seems there is software to crack it. So I use ArcMap 10.5 to import the script and save the toolbox as 10.1 format, and it work fine.
... View more
03-06-2019
12:52 AM
|
2
|
6
|
1660
|
POST
|
My suggestion is export your script and to see whether it can work. Seems in some case the imported script become broken in ArcMap 10.1.
... View more
03-06-2019
12:32 AM
|
0
|
8
|
1660
|
POST
|
Hi everyone, I would like to judge whether a polygon IsNear many polygons. I consider to use a GeometryBag to contain many polygons but it doesn't work. My VB.NET snippet is like below: Dim polygons_allbag As IGeometryBag = New GeometryBagClass polygons_allbag.SpatialReference =... Dim polygons_all As IGeometryCollection = CType(polygons_allbag, IGeometryCollection) polygons_all.AddGeometry... dim polygon as IPolygon=... Dim pTopoOp2 As ESRI.ArcGIS.Geometry.IRelationalOperator2 = CType(polygon, IRelationalOperator2) MsgBox(pTopoOp2.IsNear(polygons_all, 0)) ' This always display FALSE even if the polygon overlaps some polygons in polygons_all Dim pTopoOp2 As ESRI.ArcGIS.Geometry.IRelationalOperator2 = CType(polygons_all, IRelationalOperator2) 'This will give an "unable to cast COM object..." error. MsgBox(pTopoOp2.IsNear(polygons , 0)) What's wrong with my code and what's the best solution for my problem? The Union method will do but very slow since there are many polygons to be compared with.
... View more
10-08-2018
07:57 AM
|
0
|
0
|
259
|
Title | Kudos | Posted |
---|---|---|
1 | 12-05-2016 02:28 AM | |
1 | 01-04-2017 05:24 PM | |
1 | 04-13-2020 09:34 PM | |
1 | 05-23-2019 06:46 AM | |
2 | 03-06-2019 05:25 PM |
Online Status |
Offline
|
Date Last Visited |
05-11-2021
11:18 AM
|