-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package icons do not show up in library #10669
Comments
@alfarok any idea. It looks like you were the last one updating icons documentation on the wiki. Sorry for dragging you back into this from the confines of generative design. |
This might not be a solution, it is more an idea that might help you. |
Hey @ksobon! I haven't looked at anything related to Dynamo icons in a while but remember it always being a battle. I have used the process you described for zerotouch and nodemodel libraries but not with custom nodes. Can you point me to the doc you are describing? I also see this on the wiki updated in Febuary |
Can I ask @alfarok It was annoying me for a long time that icons should be embedded, since update of icons was a cumbersome job... So I examined why this should be necessary, and it wasn't. However, I am also using the .net framework used in the solution (e.g. 4.7)
So I stopped embedding, and icons worked perfectly... and icons became much more updatable! |
It probably was done historically for OOTB nodes so that the icons were embedded resources in the executable. This probably translated to 3rd party development from how it was being done internally but can likely be done several ways. I believe the article @ksobon is referring to was specifically for OOTB nodes since there is a slightly different process. |
Thanks @alfarok I dont know if this can help you @ksobon , but this is how my files looks like for Dynamo 2.3, and they work as expected. First, since I have isolated icons in a separate project, is the only references needed the below two.
I am also doing the compilation "BeforeBuild" due to I am using MSBuildTasks to set the assemblies version. In the wiki it is recommended to use "AfterBuild", and if you set your version hardcoded, then go for this.
Be aware, if you have used the wiki recommendations, will your resources (the resx file) point towards .net 2.0. This can be tweaked using search and replace. Replace 2.0.0.0 with 4.0.0.0
_ AND what could be important. In 1.3/2.0 is e.g. By the way, my icons are 64px for the small icons and 256px for the large icons. I am aware that only 32px/128px is needed, but in my opinion icons looks better in the 2.0 series in 64px/256px. In the 1.3 series is 64px/256px not a good idea, but this version is obsolete anyway. |
Dynamo version
Operating system
Windows 10
What did you do?
Added Package.Images.dll to provide icons for custom nodes that are *dyf based.
What did you expect to see?
Small/Large icons show up in the library.
What did you see instead?
Only Large icons come through.
Just FYI, this used to work before in older versions of Dynamo. I have a PackageImages.resx in the project and a post build routine that wraps it into a customization. Everything following your instructions from the WIKI pages. What's confusing is that clearly the customization DLL is doing some part of the job, because the Large icons show up properly. Small icons have the exact same name (guid.Small.png) and are embedded just the same way. They are 32px in size just like recommended. I don't see anything here.
Ideas?
The text was updated successfully, but these errors were encountered: