Delete PlaceHolder Component

Hi,

I have already encountered this issue several times for placeholder components.

Is there any way to delete placeholders without copy paste all components to a new file?
I am using Rhino 7 latest release.

@DavidRutten can you help answer this one?

It is not at present possible to modify placeholder at all, including deletion. Deleting them is at least in principle possible as it doesn’t actually modify the object, but since the placeholders cannot currently be selected, they also cannot be deleted.

Thanks David for the clarification.

Hello, with this GhPython code we can find PlacehloderComponent with their original names, is it possible to delete them?

image

missing components.gh (5.2 KB)

Update: It work

Update: this problem solved
grasshopper object expired during solution

Maybe there is a better solution

remove placeholder comp.gh (2.3 KB)

5 Likes

Nice one, thank you.

1 Like

This is another way, you can also use callbacks to delete components.


Remove PlaceholderComp2.gh (2.2 KB)

2 Likes

Thanks :wink:

I found that the solution provided by Seghier and Naruto don’t work if the placeholder components are in a cluster.
It took me a while to find these critters…
But if running the delete components in the said cluster, the placeholders do get deleted.

So for those still having error messages after supposedly deleting the placeholders : look in your clusters !

There is another trick i found:
1- Ctrl+A will select everything
2- Unselect the working components
3- Delete placeholder components (which are selected)

3 Likes