POST
|
https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Custom-Dictionary-Style
... View more
a week ago
|
0
|
0
|
47
|
POST
|
Kirk, I dug into this a little deeper. It looks like, in some cases, particular symbolsets have a "000000 - Unspecified" symbol entity as the default. The Atmospheric symbols - symbolset 45 and 46 as examples. So the initial pick of the METOCPoints, Lines, Polys triggers a search for the default entity: "symbolentity 0". Now, I _think_ the GetDictionarySymbol used to return a default symbol for undefined entities?? - but it could just be a bug in the sample - anyway, when I select a "real" entity from the symbolentity drop down (i.e. something other than 000000 - eg 110100), I get the correct symbol retrieved and loaded. I think the best thing to do is simply wrap the GetDictionarySymbol call in a try/catch to prevent the null symbol being returned from blowing up the dockpane in those cases where an unspecified "000000" symbol is being requested. private Task<ImageSource> GenerateBitmapImageAsync(Dictionary<string, object> attributes) {
return QueuedTask.Run(() => {
try {
CIMSymbol symbol =
ArcGIS.Desktop.Mapping.SymbolFactory.Instance.GetDictionarySymbol(
"mil2525d", attributes);
var si = new SymbolStyleItem() {
Symbol = symbol,
PatchHeight = 64,
PatchWidth = 64
};
return si.PreviewImage;
}
catch(NullReferenceException) {
return null;
}
});
}
... View more
a week ago
|
0
|
1
|
88
|
POST
|
Hi Kirk, looks like a bug in GetDictionarySymbol. I'll keep u posted.
... View more
a week ago
|
1
|
0
|
94
|
POST
|
I see. Thanks for that. What I told Mody to do was run a console executable, not Pro. However, for that console executable to run, it will need Pro installed. The console executable will need two references - the ArcGIS.Core and ArcGIS.CoreHost dlls - hence the name "CoreHost".
... View more
a week ago
|
1
|
1
|
84
|
POST
|
~Hi Kirk, the sample is designed for use with "mil2525d". To change it you would have to replace that literal string with the name of your dictionary. However, I think the property grid expects mil2525d entities also so that might break also but it's been quite a few years since I wrote that sample and I don't remember all the details.~ scratch that - I see u are using mil2525d. I'm not sure off the top of my head. Looks like the GetDictionarySymbol call does not find your selected symbol and, off the top of my head, I dont know why
... View more
a week ago
|
0
|
4
|
100
|
POST
|
Mody, The pattern to use is CoreHost - assuming you need access to the Geodatabase. It requires a Pro license and a Pro install on the server machine. Pro, itself, does not have to be running. However, the application framework, maps, layouts, and so forth, are not accessible from CoreHost. If you need to access Pro project files and their content, the preferred pattern would be arcpy.
... View more
a week ago
|
0
|
5
|
90
|
POST
|
Thanks for this Than. This is a bug. 2.7 is almost final and so we cannot get the fix in for 2.7. We will fix this in 2.8
... View more
11-20-2020
10:45 AM
|
2
|
1
|
284
|
POST
|
Thanks for this Joel. This could be a bug then. Could you make a repro available to tech support so we can debug?
... View more
11-10-2020
08:05 AM
|
0
|
0
|
82
|
POST
|
The add-in must be loaded. (Step 10). The toolbox folder is not deployed on install. When Pro shuts down the folder remains. _However_, if: either - the add-in is uninstalled or - the add-in is not loaded the next time Pro starts (eg security settings were changed) the toolboxes folder will be deleted..... So even though the folder may be present on the disk between Pro sessions, if the accompanying add-in is not loaded for the session then neither will its toolbox. This is mentioned under the "Note:" at the bottom of the previously referenced article. I suspect the confusion is arising from examining the assembly cache location of a previously loaded add-in where the toolboxes folder would be present (if it had an embedded toolbox) and comparing it with the assembly cache location of an add-in with an embedded toolbox that has not (been loaded).
... View more
11-09-2020
09:55 AM
|
1
|
2
|
82
|
Online Status |
Offline
|
Date Last Visited |
a week ago
|