POST
|
Try to put all your components to the sub-folder of ArcPro extensions C:\Program Files\ArcGIS\Pro\bin\Extensions\[Test]. Another convenient approach may be found using GAC. For deploy purposes I've preferred any configurable Add-In folder. For thrid party or late binding dlls this may require to espouse the assemblies which were failed to load: AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(MyResolveEventHandler); private static System.Reflection.Assembly MyResolveEventHandler(object sender, ResolveEventArgs args) { System.Reflection.AssemblyName MyAssemblyName = new System.Reflection.AssemblyName(args.Name); string AssemblyPath = [Add-In folder]; string TargetPath = System.IO.Path.Combine(AssemblyPath, string.Format("{0}.dll", MyAssemblyName.Name)); MyAssemblyName.CodeBase = TargetPath; //This alone won't force the assembly to load from here! if (!System.IO.File.Exists(TargetPath)) { // .NET is always searching for the satellite assemblies, even if they are not existing // The AssemblyResolve event is also firing for a lof of resource DLLs which are not existing return null; } // We have to use LoadFile here, otherwise we won't load a differing version, regardless of the codebase because only LoadFile will actually load a *new* assembly if it's at a different path // See: http://msdn.microsoft.com/en-us/library/b61s44e8(v=vs.110).aspx return System.Reflection.Assembly.LoadFile(MyAssemblyName.CodeBase); }
... View more
10-16-2019
02:23 AM
|
0
|
0
|
608
|
POST
|
Yes, I guess my ArcPro AddIn referencing other DLLs (partly late binding) needs additional code to work on any folder specified by a user. It is another concept as I am familiar using ArcMap command. Thank you, Bart!
... View more
10-29-2018
02:28 AM
|
0
|
0
|
2560
|
POST
|
I am back on this path again trying to present my dilemma more accurate and clearly. The additional library DLL’s reference property “Copy to local” cannot be set to True because some of my assemblies are late binding and therefore not listed as references on my Add-In. It is an optional entrance to a smart system with core components which serves not only ArcPro but ArcMap commands or other containers like GeoPackage as well. Dependent on the calling mode some different libraries are linked at run-time based on System.Reflection.Assembly.Load/LoadFrom function. For this case I intend to use the ArcPro extensions folder C:\Program Files\ArcGIS\Pro\bin\Extensions\* (this works well) or invoke additional .NET configuration. On the other hand, I dislike copying all the same libraries for each of many Add-Ins to theirs working folder C:\Users\*\AppData\Local\ESRI\ArcGISPro\AssemblyCache\{GUID} with “Copy to local” flag for current user and Add-In GUID.
... View more
10-17-2018
09:22 AM
|
0
|
0
|
2560
|
POST
|
Hi Gintautas, Thank you for your extensive elucidations! I hope it helps some developers. For me there is no problem with additional libraries container because everything works at some special folders as described earlier. I am also aware to take care of actual version for debugging. My question has more .NET deploy nature on how to make configured Pro Add-Ins folder, well known folder or any other folder e.g. C:\Program Files\xxxxxxxx for not to crash ArcGIS Pro but to be known that way as C:\Program Files\ArcGIS\Pro\bin\Extensions does? I have .NET knowledge lack there and not unlimited time to search for the appropriate technique. My goal is to deploy package including additional libraries to Add-Ins folder as configured by ArcGIS Pro user without crash scenario.
... View more
10-12-2018
01:51 AM
|
0
|
0
|
2560
|
POST
|
Thank you for reply but copying Add-In referenced DLL’s to configured Add-Ins folder causes Arc Pro to crash while invoke to run further referenced code as on Add-In itself. I am searching for an appropriate folder to debug and deploy any (not ArcGIS) DLL’s which are referenced by a custom Pro Add-In. Following there are some scenarios to place further referenced DLL’s evaluated with actual version ArcGIS Pro 2.2.3. Actually I tend to use ArcGIS Pro Extensions folder. Does not work (crash): Add-In Manager configured Add-Ins folder e.g. D:\my disk\Pro\Test Well known folder e.g. C:\Users\*\Documents\ArcGIS\AddIns\ArcGISPro Works, but not appropriate: Add-In working folder e.g. C:\Users\*\AppData\Local\ESRI\ArcGISPro\AssemblyCache\{GUID} GAC folder C:\Windows\Microsoft.NET\assembly\GAC_MSIL Works, maybe appropriate? ArcGIS Pro Extensions folder C:\Program Files\ArcGIS\Pro\bin\Extensions
... View more
10-11-2018
10:35 AM
|
0
|
2
|
2560
|
POST
|
My AddIn is referencing another own component. All DLL's are installed in one configured Add Ins folder. But Arc Pro crashes that way! I have found out working folder, but I suppose it must be more professional? C:\Users\*\AppData\Local\ESRI\ArcGISPro\AssemblyCache\{GUID}
... View more
10-09-2018
07:20 AM
|
0
|
12
|
4683
|
POST
|
I am using <content> inside <button> in my Config.daml with custom element "Descr" which causes compiler message: Could not find schema information for the attribute 'Descr' Categories.GetComponentElements can find this ComponentElement, but I would like to have clean messages box. What should be done? <categories> <insertCategory id="CatID_1"/> </categories> <button id="ButtonID_TS1" ... categoryRefID="CatID_1"> ... <content Descr="Test"></content> </button>
... View more
10-04-2018
10:26 AM
|
1
|
1
|
470
|
POST
|
Thank you, Ulma Declaring my first button I have skipped to the issue with delegate command. Stepping back to the Button class this.ID works fine. But calling delegated void procedure on Module class there is no "this" constructor regarding button?
... View more
10-04-2018
10:10 AM
|
0
|
0
|
664
|
POST
|
I would like to retrieve button id of Config.daml from c# OnClick event without fixed coding: ... <controls> <button id="ButtonID_TS1" className="ModuleID_TestAddIn:OnCustomButtonClick_StateID_1" ... internal static void OnCustomButtonClick_StateID_1() { string ButtonID = ? // how to obtain button id? --> "ButtonID_TS1"; ... I am studying arcgis-pro-sdk/wiki/ProConcepts-Framework with arcgis-pro-sdk-community-samples but cannot find appropriate method. Having ButtonID I am able to get another button parameters using ArcGIS.Desktop.Framework - FrameworkApplication.GetPlugInWrapper(ButtonID) or any custom parameters applying <categories> with <content> using Categories.GetComponentElements and component.ReadAttribute functions.
... View more
10-04-2018
07:25 AM
|
0
|
2
|
891
|
POST
|
Thank you, Christopher, very much! The mess was caused by another external extension with configured <extensionConfig ... hasExtendedInfo="true"/> entry, but without correct IExtensionConfig implementation. Such DLL positioned in a well-known or optional AddIn folder supposedly obstructs license configuration for all other properly installed external extensions like Licensing sample. The desktopVersion setting or hasExtendedInfo flag set to "false" work as expected (impacting particular extension).
... View more
10-02-2018
07:14 AM
|
1
|
0
|
363
|
POST
|
I am evaluating the sample arcgis-pro-sdk-community-samples/Framework/Licensing/ as an Add-in that should implement the configurable extension pattern in Pro shown on the licensing tab on the ArcGIS Pro application backstage as an External Extension. Unfortunately there is no External Extension entry on the licensing tab backstage (between Esri Extensions and Settings. I cannot find any restrictions preventing the sample to achieve this issue! The sample is unchanged (including an <extensionConfig .../> element to Config.daml). Can you give me some helpful hint?
... View more
10-01-2018
10:27 AM
|
0
|
2
|
427
|
POST
|
ArcReader 10.1 loads PMF with QueryLayer based on SQLServer view quickly. This same data environment needs much more time using ArcReader 10.6, probably upwards from 10.2 Can someone confirm or explain this issue? Or negate? Is it a bug maybe?
... View more
03-01-2018
06:56 AM
|
0
|
0
|
320
|
POST
|
Thank you Dominique, it works. However, it is not clear approach for me to prevent from zooming all other layers in the map appointing to the first layer visible scale range.
... View more
11-25-2016
03:27 AM
|
0
|
0
|
414
|
POST
|
ArcGISMapImageLayer locks MapView ZoomIn on MaxScale. https://services.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer MaxScale should set the maximum scale where the layer is visible, not to lock ZoomIn.
... View more
11-24-2016
07:45 AM
|
0
|
2
|
1823
|
POST
|
Using current SDK 10.2.7 Zoom In/Out and vertical limitation works for me, but the map panning seems not limited horizontally. Using SDK Quartz Beta I cannot find MapView.MaximumExtent nor something adequate (in MapView class). Waiting for the SDK commercial release I try to return Viewpoint after NavigationCompleted event.
... View more
11-17-2016
01:42 AM
|
0
|
6
|
1734
|
Title | Kudos | Posted |
---|---|---|
1 | 10-04-2018 10:26 AM | |
1 | 10-02-2018 07:14 AM |
Online Status |
Offline
|
Date Last Visited |
06-29-2021
06:44 AM
|