Select pinned elements toggle

Is there a way to toggle the select pinned elements function in Revit?

image

This function

I can see it’s, “SelectPinned” in the Revit API but that’s as far as I’ve got.

This is the API call: SelectPinned Property

2 Likes

I found that…

But I think I’m doing this wrong as it’s not a PostableCommand (not in the drop down list).

Seem to have made some progress.
but… now what?

image

Well this one runs… but doesn’t seem to do anything. :frowning:

Oh, I just realised.

This works… but it doesn’t change the picture in Revit.

image

It’s like this but can’t select!

Weird!!