Editor to assign custom icons
Moderator: Moderators
-
- Posts: 1
- Joined: Fri Nov 29, 2019 8:26 am
Re: Editor to assign custom icons
So has anyone figured this out?
Re: Editor to assign custom icons
Success!
I managed to insert customized icons for my Fusion 360 macros!
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!

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

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 (60.83 KiB) Viewed 19909 times
Re: Editor to assign custom icons
well done, thank you.
Space Navigator x2, Space Pilot, Space Pilot Pro, SpaceMouse Enterprise
Re: Editor to assign custom icons
Erratum! see correction in red. (cannot edit my post)
MirageC wrote: ↑Fri Jan 24, 2020 10:13 pm7 - 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>
Re: Editor to assign custom icons
<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.
<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.
Re: Editor to assign custom icons
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?
Re: Editor to assign custom icons
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.
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.
Re: Editor to assign custom icons
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?AxeGunKnife wrote: ↑Thu Jan 18, 2018 2:50 pmI, 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.
Re: Editor to assign custom icons
Eyy... Would you look at that! So much better than not having any icons...
For now, I went with the Solid one as it requires the use of the SpaceMouse the most while Sketching can mostly be done with the Keyboard.
I think the only icing on the cake would be the Screen changing depending on the workspace I'm working in ( Sketching, Solid, Surface, etc... )For now, I went with the Solid one as it requires the use of the SpaceMouse the most while Sketching can mostly be done with the Keyboard.