POST
|
Hi tim, i spoke to development about this as it is not something i am intimately familiar with. Accordingly, the original interface was based on interaction of the AO symbol model and GDI. Pro's display pipeline, as such, is quite different. That said, CIMGraphic does have a BlendingMode property which may cover the cases u were using depending on the opcode: https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic1910.html -But- the blending mode u specified would only be honored per graphic within the overlay layer. The overlay layer itself in Pro is hardcoded to alpha blending. Likely the interaction between the overlay and other layers may not be as expected so your mileage will vary.
... View more
09-10-2024
01:12 PM
|
0
|
1
|
164
|
POST
|
Addins are not intended to be, nor well suited to being, authoring tools for admin settings. That is best done w/ a custom script or .NET exe if the idea is to create a little utility admins can use to generate a Pro.settingsConfig rather than creating it by hand
... View more
09-09-2024
08:26 PM
|
0
|
0
|
201
|
POST
|
Sounds like u/your organization has an admin setting in-place locking the home folder value. When a setting is locked, it cant be changed in the UI, via the SDK properties/methods, or via the ArcPy commands that give you similar access. Attempts to change a locked setting should fail. Only a user with the relevant permissions to change the underlying admin setting can make a change. https://pro.arcgis.com/en/pro-app/latest/get-started/application-setting-management.htm
... View more
09-09-2024
10:20 AM
|
0
|
0
|
233
|
POST
|
try: var window = Project.GetCatalogPane(true);
if (window != null)
{
Project.OpenAsync(@"path_to_your_project");
} In your application ready. However, I dont quite follow the workflow. Your start page is being shown/ refreshing (asynchronously) for the purpose of selecting a project when u trigger opening of another project "underneath" it? Anyway, this is probably a timing issue in that the application is refreshing the start page UI when u call OpenAsync. If GetCatalogPane returns null u cld try building in a delay before invoking OpenAsync to allow the UI to complete its refresh. Something like "Task.Delay(500).Wait()" or whatever. That said, the preferred way to open a project without selecting a project from the start page is to specify the project on the command line - as the last argument (ie after the "/config:xxxxxxx"). This will skip showing the start page entirely. If u need to determine the project URI programmatically, and so cant use the cmd line, id suggest building in an event in your start page view model to fire after it (ie the start page user control) is loaded - and have that event do the OpenAsync.
... View more
09-03-2024
10:31 AM
|
0
|
1
|
252
|
POST
|
Gurunara, if this answers your question please mark this post as the solution, thanks
... View more
07-19-2024
12:48 PM
|
0
|
0
|
331
|
POST
|
No. This is the problem: graphicElement.GetGraphic().Symbol = polygonSymbol; The CIM uses a transactional pattern. You get a local copy, not a reference, of the deserialized state that u can modify (as needed) Changes must be _applied_ back via a commit. So, get the graphic (local copy) and _hold_ a reference (to that copy). var graphic = graphicElement.GetGraphic(); Next, apply your change to the copy whose reference you are holding: graphic.Symbol = polySymbol [or polySymbol.MakeSymbolReference() if u hv a symbol] Now, commit the change(s) made to the local copy _back_ graphicElement.SetGraphic(graphic);
... View more
07-18-2024
12:31 PM
|
0
|
0
|
346
|
POST
|
You are close, - almost there. Use graphicElement.SetGraphic(...) - https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic11077.html - to apply the changes to the graphic symbol _back_ to the element. There is a code snippet there u can use.
... View more
07-14-2024
01:20 PM
|
0
|
1
|
396
|
POST
|
Change the color on the symbol, not the fill. if (symbol is CIMPolygonSymbol polygonSymbol)
polygonSymbol.SetColor(....) To change the color on a fill, use its color property. var solidFill = polygonSymbol.SymbolLayers.OfType<CIMSolidFill>().FirstOrDefault();
solidFill?.Color = .... ; "Symbol" take a symbol reference not a symbol. An unfortunate property naming. //polygonGraphic.Symbol = symbol;
polygonGraphic.Symbol = symbol.MakeSymbolReference();
... View more
07-13-2024
01:21 PM
|
0
|
0
|
368
|
POST
|
CIMSymbol SetColor : https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic16566.html CIMPolygonSymbol SetOutlineColor : https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic16567.html
... View more
07-12-2024
09:41 AM
|
0
|
0
|
413
|
POST
|
https://products.aspose.com/cells/net/conversion/png-to-svg/
... View more
07-05-2024
05:13 PM
|
0
|
0
|
199
|
POST
|
07-05-2024
10:44 AM
|
0
|
1
|
247
|
POST
|
in Pro we only have addins - to include what u wld hv previously used an extension for. Addins can load early by setting the <insertModule .... autoLoad="true" ...>. It will be there when a map or layers are loaded to do the necessary.
... View more
07-01-2024
08:19 PM
|
0
|
1
|
339
|
POST
|
Consult https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Editing#enable-and-disable-editing. It might be what u r looking for
... View more
07-01-2024
06:50 PM
|
0
|
1
|
351
|
POST
|
mody, in addition to what Uma says below, it is also possible to split your workflow into multiple steps where each step is within the context of a QueuedTask and, in between steps, u can show a modal UI to the user. The key is to "await" each step wrapped within a QueuedTask like so: internal class Button1 : Button {
protected async override void OnClick()
{
//step 1 - await it before proceeding to step 2
var ok = await QueuedTask.Run(() => {
//do work
return true;
}
//Back on the UI
if (!ok) {
MessageBox.Show("......");
return; //exit perhaps
}
//continue on to step 2
ok = await QueuedTask.Run(() => {
....
//Back on the UI
if (!ok) {
MessageBox.Show("......");
//continue on to step 3
ok = await QueuedTask.Run(() => {
... //and so-on The only caveat here is that each time that u return to the UI, there is an opportunity for other "processes/workflows" to use the QueuedTask in-between your steps so, ideally, u want to capture any state u need upfront (such as the layer u r examining into a local variable and so on)
... View more
06-25-2024
03:47 PM
|
1
|
0
|
232
|
Title | Kudos | Posted |
---|---|---|
1 | 06-14-2021 04:38 PM | |
1 | 06-25-2024 03:47 PM | |
2 | 06-11-2024 10:54 AM | |
1 | 05-28-2024 10:41 AM | |
1 | 05-08-2024 09:50 AM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|