Select pinned elements toggle - Revit 2025

Revit 2023 it works >>

However, Revit 2025 I get this error:

Help!

Tried this too

Try it using the IronPython3 or PythonNet engine.

I have to install those?

SelectPinned is an instance Property, you can’t “get” it from the class

2 Likes

I’m not trying to pin an instance though?

I want to toggle the setting in Revit to prevent the user from being able to select pinned elements.

Also.. I’m doing it.
image

Yes - they are packages on the package manager, just be sure to download the right version for your Revit build and change the engine on the Python node.

SelectionUIOptions.GetSelectionUIOptions()

return an instance of SelectionUIOptions ( Returns the current user’s SelectionOptions.)

3 Likes

Thanks. Some of the terminology is pretty confusing.

2 Likes