Document.PurgeUnused node equivalent in API

Hi, I found this OOTB node in Dynamo, but I can’t seem to find the API equivalent.

Does anyone know how to achieve purging unused elements using the API? I did some searches on the forum, which turned up that it can only be done using a postable command. But then, how does this node achieve it? The goal is to use it with multiple documents open in the background.

Hello… think Genius Loci have a node there purge and use API…if i remember right :wink:

1 Like

Ah true! For some reason I didn’t think to look at it. Seeing that there was an OOTB node already, I assumed there would be a method in the API :grinning_face_with_smiling_eyes:

So I see that Genius Loci node basically recreates the whole purge unused logic, which is what you have to do I guess when the API doesn’t give you the ready made tools for it.


1 Like

Yes an amazing node :wink:

1 Like