steven.williams.as
623 Views, 2 Replies

API call for Set Icon / Icon Path for Button

Is there an API call to access/set the button icon? It is available in the GUI in two ways:

  • Main interface → MAP Buttons → Right-click, Button Report → Icon Path column

2022-04-01 10.20.14 acad_5w60Y9zzcQ.png

2022-04-01 10.20.37 acad_hkcnhHrCR4.png

 

  • Edit Service Database → Service Information → Edit Service Template → Right-click a button

2022-04-01 10.22.49 acad_kiZUsQEQwq.png

2022-04-01 10.23.03 acad_rQqI3jfxsw.png

2022-04-01 10.23.31 acad_vPOpXhgmEz.png

 

It appears that the GetBase64ButtonImage() method may return that image, but the documentation is not clear on that, and I have not tried it myself yet. There also appears to be a similar (inaccessible) method internal unsafe string GetImagePath().

 

I cannot find any documentation in the API manual (C:\Program Files\Autodesk\Fabrication 2020\SDK\FabricationAPI.chm) that sets the icon path. Does such a property or method exist?

 

Edit: This is related to a question @ssimleness asked several years ago, but mine is the API version of the question.

Tags (1)