|
POST
|
There is a CircularAnimationControl in Pro SDK. Can you use it?
... View more
01-23-2019
07:05 AM
|
0
|
1
|
1917
|
|
POST
|
I need to draw text in circle but text should be completely inside the circle, without some parts out of circle's border. My idea is determine size of text (in pixels?) and then draw circle based on this size. How can I achieve this with Pro SDK?
... View more
11-27-2018
03:49 AM
|
0
|
0
|
683
|
|
POST
|
I'm trying to add text overlay to map but it seems that Placement of a CIMTextGraphic is totally ignored, so text always anchored to geometry by bottom left corner. On image below letters 'A'...'I' are drawn using all possible values of Anchor enum as value of Placement property: As you can see all letters are drawn at the same point although I set different anchors for them. I use MapPoint (orange circles) as Geometry for CIMTextSymbol. Is there a workaround for this problem? And when it will be fixed?
... View more
11-06-2018
11:15 AM
|
0
|
1
|
1248
|
|
POST
|
Is it possible to specify properties of the border of a point symbol with SymbolFactory.ConstructPointSymbol? At now I don't see corresponding overload so for circle symbol I get black border which I don't need. I'm trying to draw point geometries on map, so I need to create point symbol to pass to the AddOverlay method.
... View more
10-15-2018
06:30 AM
|
0
|
1
|
2036
|
|
POST
|
If a dockpane was visible on ArcGIS Pro closing, next time the dockpane will be opened on ArcGIS Pro start. But its method OnShow will be called multiple times with IsVisible switched from true to false and then from false to true. Why is this happening? I want to place some logic on switching dockpane's visibility, but with the described behavior this logic will be executed multiple times with undesireable effects. My task is to determine on ArcGIS Pro start if a dockpane will be visible or not and at now I don't see reliable method.
... View more
09-25-2018
09:14 AM
|
1
|
0
|
633
|
|
POST
|
I have an add-in with a dockpane (hereinafter M). M contains an area that can be undocked to separate dockpane (hereinafter S). It is easy to handle hiding of S and return undocked control to the M. I also want to have ability to drag undocked S and drop it onto an area of the M. But it seems drag and drop functionality doesn't work with dockpanes. I set isDropTarget attribute on the M to true in Config.daml, overrode OnDragOver and OnDrop on the M's view model, implement IDragSource on the S's view model but I can't fall into the methods of IDragSource and IDropTarget interfaces. Is it possible to drag entire dockpane on a control of an another dockpane?
... View more
09-25-2018
08:11 AM
|
0
|
0
|
532
|
|
POST
|
I noticed that LayerFactory.CreateLayer takes huge amount of time to add content of lyr file to a map. On my computer it takes more than 5 minutes to add simple layer (lyr file is attached – TestLayer.lyr). I created simple test add-in to illustrate the problem (VS solution is attached – TestSlowCreateLayer.zip). Add-in contains the button (named Test slow CreateLayer) which calls await QueuedTask.Run(() => LayerFactory.Instance.CreateLayer(new Uri(layerFilePath), MapView.Active.Map)); where layerFilePath is the path of attached lyr file (TestLayer.lyr). After method is executed the message box with execution time will be shown. I can reproduce this behavior for every lyr file I take. Layer data is very simple as you can see. Also I noticed high CPU usage for ArcGIS Pro while layer is being created: 70-80%. Environment: CPU Intel Core i5-7200U 8 GB RAM ArcGIS Pro 2.1 My add-in should work in ArcgIS Pro 2.1 so I need to get it work good on this version. I suppose 5 minutes for provided lyr file is more than it should be.
... View more
09-25-2018
04:24 AM
|
0
|
1
|
776
|
|
POST
|
I want to setup continuous integration build for my ArcGIS Pro add-in with increasing the version of the add-in on each build. Version is written in config.daml. Are there ways to change version of an add-in on build without modifying config.daml prior building? Maybe I can use some solution variable in version attribute and set this variable to a value provided as a parameter to Visual Studio build command?
... View more
09-18-2018
02:57 PM
|
0
|
0
|
747
|
|
POST
|
Unexpectedly an add-in built in 2.1.2 environment doesnt' work in ArcGIS Pro 2.0. I've attached test add-in with a single button in 'Add-In' ribbon group. Clicking the button disables it saying that button class is not found. desktopVersion="2.0" but add-in doesn't work. Version of the software used to build the add-in: ArcGIS Pro 2.1.2 ArcGIS Pro SDK for .NET 2.1.0.10257 ArcGIS Pro SDK for .NET (Utilities) 2.1.0.10257 2.1.2 is not a major version so I suppose add-in should work. Add-in was created just from VS template, nothing changed in it.
... View more
05-13-2018
12:55 PM
|
0
|
1
|
674
|
|
POST
|
AddToolbox is not what I need... It adds toolbox into a script. I want to add script into ArcGIS Pro project programmatically, not via ArcGIS Pro UI. So I need programmatic way of this: After clicking on Script menu item the dialog will be shown to specify script metadata: Can I call some method on IProjectItem which represents Toolboxes element in catalog that will add my Python script along with all needed metadata?
... View more
05-03-2018
01:24 PM
|
0
|
1
|
956
|
|
POST
|
Is it possible to install custom script tool into ArcGIS Pro? Ideally I want to be able to add my own toolbox with GP tool to the list of system toolboxes. As I know there is no way to create custom geoprocessing tool. But we can create script tool within a project via ArcGIS Pro. But what if I have python script and want to create installer for my product which will install this script (or toolbox)? Or at least...can a script tool be added into a project programmatically?
... View more
05-03-2018
12:19 PM
|
0
|
3
|
1040
|
|
POST
|
I've found that event. It is ViewerExtentChanged from the ArcGIS.Desktop.Internal.Mapping. It is possible to attach handler to this event with the Subscribe method.
... View more
11-25-2017
07:43 AM
|
0
|
1
|
1651
|
|
POST
|
Is there an event when visible extent of the current map changed? I want to track such changes to update some values in my add-in. Or maybe there is a workaround for this task?
... View more
11-23-2017
04:03 AM
|
0
|
2
|
2028
|
|
POST
|
Hi Sean, Hmm, seems it works. I marked this method as async and used await for SetCurrentToolAsync, but it caused deadlock somehow. Thank you!
... View more
11-20-2017
12:35 PM
|
1
|
0
|
2806
|
|
POST
|
I have a problem with deactivating my custom map tool when sketch is finished. At now I'm trying to call SetCurrentToolAsync from the OnSketchCompleteAsync of my map tool. But this causes deadlock. Seems like I need to exit from OnSketchCompleteAsync to proceed with changing the current tool. I want to deactivate the tool when sketch is completed. I didn't found any property in the MapTool class to specify this behavior. Is this possible?
... View more
11-19-2017
03:03 AM
|
0
|
3
|
3126
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-25-2018 09:14 AM | |
| 1 | 11-20-2017 12:35 PM | |
| 1 | 02-16-2017 08:55 PM | |
| 1 | 11-18-2017 06:15 AM | |
| 1 | 01-13-2017 07:15 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|