|
POST
|
@MichelleMathias how do I move this topic to Pro SDK?
... View more
07-11-2022
03:23 PM
|
0
|
1
|
1630
|
|
POST
|
Yes I have a tab just for my add-in and about 10 tools under it. I currently have an About button that displays a MessageBox but the text I want to display is getting too long. The users are in my company so really its my call on what gets displayed. In ArcMap I would just display a Form but wanted something that was not as "intrusive" as you say. A typical About is what I am displaying but I have notes for each major release. Plus I put other notes in there as well. Something like the snapshot below. But I am asking for what other options exist within Pro. The toast Notification seems like a possibility.
... View more
07-11-2022
11:55 AM
|
0
|
0
|
1637
|
|
POST
|
I have created an Addin for my company and all is working well. Now I want to display an About box with version release notes and other info. Currently I am just displaying a MessageBox but the notes are getting too lengthy. I also tested the toast Notification but am not sure my info belongs there. What would be recommended as a a standard to display About info? a Form? in the Backstage? another control?
... View more
07-11-2022
09:28 AM
|
0
|
7
|
1648
|
|
POST
|
As a final edit I took @GKmieliauskas code and made it an extension. Note I use full namespaces so as not to clash with the MS XML functions. <Extension()>
Function SerializeEsri(Of T As Class)(ByVal value As T) As XDocument
Dim sr As New ESRI.ArcGIS.esriSystem.XMLStream
Dim ir As ESRI.ArcGIS.esriSystem.IStream = CType(sr, ESRI.ArcGIS.esriSystem.IStream)
Dim wr As New ESRI.ArcGIS.esriSystem.XMLWriter
Dim ser As New ESRI.ArcGIS.esriSystem.XMLSerializer
wr.WriteTo(ir)
ser.WriteObject(wr, Nothing, Nothing, String.Empty, String.Empty, value)
Dim xdoc As XDocument = XDocument.Parse(sr.SaveToString)
Return xdoc
End Function Usage: Private Function GetSpatialReferenceAsWkt(pSpatRef As ISpatialReference) As String
If pSpatRef Is Nothing Then Return Nothing
Dim xdoc As XDocument = pSpatRef.SerializeEsri
Dim xelem As XElement = xdoc.Root.Element("WKT")
Return xelem.Value
End Function
... View more
12-17-2021
11:20 AM
|
0
|
0
|
2473
|
|
POST
|
I like that one too except you have to write it to disk first.
... View more
12-17-2021
08:53 AM
|
0
|
0
|
2478
|
|
POST
|
ArcMap 10.8.1 using .NET ArcObjects I have a geometry with a spatial reference. How do I get its projection WKT? I've been looking for hours and can't seem to find a simple way to do this. Dim pGeom As IGeometry = CreateGeometry() Dim wkt as String = pGeom.SpatialReference.ToWKT '<=== What API do I use for this conversion? The output should be something like: PROJCS["World_Azimuthal_Equidistant",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Azimuthal_Equidistant"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-86.02400831252139],PARAMETER["Latitude_Of_Origin",41.70912056625856],UNIT["Meter",1.0]]
... View more
12-16-2021
12:11 PM
|
0
|
5
|
2520
|
|
POST
|
Found an answer here https://community.esri.com/t5/arcgis-pro-sdk-questions/dialog-launcher-buttons/td-p/851153
... View more
12-15-2021
02:04 PM
|
0
|
0
|
983
|
|
BLOG
|
Found an answer here https://community.esri.com/t5/arcgis-pro-sdk-questions/dialog-launcher-buttons/td-p/851153
... View more
12-15-2021
02:03 PM
|
0
|
0
|
1545
|
|
BLOG
|
How can I open to view a property sheet from my toolbar? I already created my property sheet and put it in the backstage successfully. Now i want to click a button on my toolbar that will open to it directly. There seems to be some support for this because if I right-click on any toolbar and then choose "Customize the Ribbon" it displays the property sheet from the backstage.
... View more
12-15-2021
01:42 PM
|
0
|
0
|
1550
|
|
POST
|
In my AddIn I have successfully added a property sheet to add to the Options in the Backstage. Now I am trying to figure out how to open to that property sheet from a button in my Toolbar. I have tried almost every type of ID I can think of an it doesnt do anything which means i am not using the correct call or the correct id. Friend Class ExtBtnOptions
Inherits Button
Protected Overrides Sub OnClick()
Try
''Opens the Backstage to the "About ArcGIS Pro" tab.
'FrameworkApplication.OpenBackstage("esri_core_aboutTab") <-- this works
'Opens the Backstage to the "AA Analyst" options property sheet in the "Options" tab.
FrameworkApplication.OpenBackstage("MyCompany_MyGroup_MyAddIn_ExtPshOptions")
Catch ex As Exception
MessageBox.Show(ex.Message, "Exception", MessageBoxButton.OK, MessageBoxImage.Error)
End Try
End Sub
End Class
... View more
12-15-2021
01:24 PM
|
0
|
1
|
999
|
|
POST
|
Wow, something much simpler than I thought. Thanks for the heads up. I completely forgot about adding the image in the project itself and setting the property to "AddInContent". You saved my day!!! I hadn't touched this project in a year and a half so am a bit rustty.
... View more
12-15-2021
08:16 AM
|
0
|
0
|
1284
|
|
POST
|
I am creating a Pro add-in with custom buttons. I've taken the standard image AddInDesktop16.png and AddInDesktop32.png and created two new buttons with the same properties. When I add them as image sources the add-in shows nothing. They are in the same folder and I cant see anything that is different between the two. Are there restrictions on the images that I should take into account?
... View more
12-14-2021
07:54 AM
|
0
|
2
|
1321
|
|
POST
|
Thanks folks. I will be spending some time with these links. Thanks for the info.
... View more
11-09-2021
08:46 AM
|
0
|
0
|
2044
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-25-2020 09:25 PM | |
| 1 | 08-17-2022 11:17 AM | |
| 1 | 07-24-2022 01:36 PM | |
| 1 | 07-14-2022 11:22 AM | |
| 1 | 07-14-2022 10:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-27-2025
11:11 AM
|