Editor to assign custom icons

If you have questions or comments concerning any non-support related 3Dconnexion topic, please use this forum.

Moderator: Moderators

spartan00j
Posts: 1
Joined: Fri Nov 29, 2019 8:26 am

Re: Editor to assign custom icons

Post by spartan00j » Fri Nov 29, 2019 8:34 am

So has anyone figured this out?

MirageC
Posts: 3
Joined: Fri Jan 24, 2020 9:55 pm

Re: Editor to assign custom icons

Post by MirageC » Fri Jan 24, 2020 10:13 pm

Success!

I managed to insert customized icons for my Fusion 360 macros! :D

Step by step... hoooo baby!!! (No seriously)

A) Creating the icons and placing them into the right folder.
1 - Do a print screen of you application where your desired icon appears

2 - Using your favorite picture editing tool, crop and redimension to 24 X 24 Pixels

3 - Save as in the Pictures directory (do not try to save directly to the here below location, windows will not let you. Also no network drive path allowed)

4 - Copy the picture you just saved and paste it into: C:\Program Files\3Dconnexion\3DxWare\3DxWinCore64\Cfg\Images\3DxService

B) Modifying .xml file to link your macro to the right icon.
5 - Copy the following file to your Documents folder. C:\Program Files\3Dconnexion\3DxWare\3DxWinCore64\Cfg\[your program].xml (windows will not let you edit and save directly into the Program Files directory. )

6- Open this file with notepad or notepad++

7 - Locate the image association section: example
<ButtonAction Type="Macro">
<ID>Extrude</ID>
<Name>Extrude</Name>
<Image>
<Source>[driver_images:Generic_Extrude.png]</Source>
</Image>
</ButtonAction>


8 - create a new entry for each of you macros: example
<ButtonAction Type="Macro">
<ID>NewMacro</ID>
<Name>Extrude</Name>
<Image>
<Source>[driver_images:NewMacro.png]</Source>
</Image>
</ButtonAction>


9 - Save the file.

10 - Copy paste this new xml file over the existing one in: C:\Program Files\3Dconnexion\3DxWare\3DxWinCore64\Cfg\

Your done!
:)
Attachments
customicons.jpg
customicons.jpg (60.83 KiB) Viewed 18139 times

Phil999
Posts: 397
Joined: Tue Jun 30, 2009 5:20 am

Re: Editor to assign custom icons

Post by Phil999 » Mon Jan 27, 2020 2:32 am

well done, thank you.
Space Navigator x2, Space Pilot, Space Pilot Pro, SpaceMouse Enterprise

MirageC
Posts: 3
Joined: Fri Jan 24, 2020 9:55 pm

Re: Editor to assign custom icons

Post by MirageC » Mon Jan 27, 2020 7:04 am

Erratum! see correction in red. (cannot edit my post)
MirageC wrote:
Fri Jan 24, 2020 10:13 pm
7 - Locate the image association section: example
<ButtonAction Type="Macro">
<ID>Extrude</ID>
<Name>Extrude</Name>
<Image>
<Source>[driver_images:Generic_Extrude.png]</Source>
</Image>
</ButtonAction>


8 - create a new entry for each of you macros: example
<ButtonAction Type="Macro">
<ID>NewMacro</ID>
<Name>NewMacro</Name>
<Image>
<Source>[driver_images:NewMacro.png]</Source>
</Image>
</ButtonAction>

jwick
Moderator
Moderator
Posts: 2708
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Editor to assign custom icons

Post by jwick » Mon Jan 27, 2020 9:24 am

<ID> is used for assignments. It is not localized, nor visible.
<Name> is what you see in the GUI, on the LCD, etc. It is localizable.

You can put your image files somewhere else. Most users won't have write access to the directory in Program Files.

MirageC
Posts: 3
Joined: Fri Jan 24, 2020 9:55 pm

Re: Editor to assign custom icons

Post by MirageC » Mon Jan 27, 2020 10:33 am

jwick wrote:
Mon Jan 27, 2020 9:24 am
<ID> is used for assignments. It is not localized, nor visible.
<Name> is what you see in the GUI, on the LCD, etc. It is localizable.

You can put your image files somewhere else. Most users won't have write access to the directory in Program Files.
Thank you jwick :)

Would these users have other means of changing the .XML file without write access to Program File? Can the XML file be relocated elsewhere?

jwick
Moderator
Moderator
Posts: 2708
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Editor to assign custom icons

Post by jwick » Tue Jan 28, 2020 1:07 am

There are a couple of options without going to deep here.

1) All changes the user makes through the GUI are kept under %appdata%\3Dconnexion\3DxWare\Cfg. These files can be freely edited by the user. You can add these ButtonActions there.

2) A new default cfg file can be put into %PROGRAMDATA%\3Dconnexion\3DxWare\Cfg and it will be used instead of the one in Program Files. In fact, if you don't like our defaults for an app, copy our default file from PF to PD and make all the changes you want, and the user will have a new set of defaults.

In all cases, all user changes are in %appdata%. There's nothing magical about those files. You can edit them with notepad in the same way our GUI edits them. Of course, the GUI knows something about the syntax. If you edit manually you may need to experiment for some of the esoteric areas.

But I was specifically referring to the images, not the cfg files. But you are correct, you have to edit both. The images/icons/pngs are referenced through CURIEs. You see this definition of driver_images (xmlns:driver_images="./images/3DxService/"). This, as you figured out, refers to a subdirectory. But it is a subdirectory under the cfg dir in Program Files. I'm pretty sure (I'd have to check) that this relative syntax can also be used under ProgramData, and maybe AppData. If nothing else, a full path can be used (e.g., "C:/tmp/my3DxIcons/").

Yes, I know, the GUI should do all this for you... I never intended to have people editing XML files.

BLANKOTA
Posts: 1
Joined: Sat Mar 07, 2020 1:17 pm

Re: Editor to assign custom icons

Post by BLANKOTA » Sat Mar 07, 2020 1:18 pm

AxeGunKnife wrote:
Thu Jan 18, 2018 2:50 pm
I, too, could not customize the icons in the radial menu. I also asked the developer questions in other branches. But .... they did not answer me.
1) Custom mapkey icons are not displayed on the display, only the default (smiley) icon. I'd love to to see this implemented, since I have made many custom mapkey icons. This might be a Creo specific issue?

Post Reply