Hi, which is a code that when Run comes components to Nicknam, I wanted to activate the DRAWICON option, but did not find his command? How is it?
@Mahdiyar
import Grasshopper
if run:
Grasshopper.Instances.ActiveCanvas.Document.ConvertFullNamesToNickNames()
drawicon+nickname.gh (2.4 KB)

doc = ghenv.Component.OnPingDocument()
if full_names:
doc.ConvertNickNamesToFullNames()
else:
doc.ConvertFullNamesToNickNames()
FullNames.gh (3.1 KB)
Thanks @Mahdiyar
But my question is about displaying the components
as an icon
(Draw icon option)
How is it?

import Grasshopper
Grasshopper.CentralSettings.CanvasObjectIcons = draw_icons
DrawIcons.gh (2.6 KB)
2 Likes
Thanks great!Ų)
Is it possible for a component to be hidden in the grasshopper page (canvas)
Or
(for example, is part of the algorithm hidden and also it is running?)
@DavidRutten
@Mahdiyar