Question custom components

Name the class with _OBSOLETE

So something like

public class Component_ConstructPoint : GH_Component

would become

public class Component_ConstructPoint_OBSOLETE : GH_Component

That will make it have the “old” tag written over the component icon

Then set its exposure to hidden so it only comes up when searching with #
You can find all GH old components by searching with # so for instance in this case you can search #ConstructPoint to still get access to it in gh.

For that you do:

public override GH_Exposure Exposure
{
get
{
return GH_Exposure.hidden;
}
}

6 Likes