Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Elements.CanBeLocked()

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
841 Views, 1 Reply

Elements.CanBeLocked()

Does the Elements.CanBeLocked() function tell me if the Element can be pinned or is this some other type of lock?

Tags (1)
1 REPLY 1
Message 2 of 2
naveen.kumar.t
in reply to: Anonymous

Hi @Anonymous,

 

Element.CanBeLocked() returns an bool value.It wont lock/pin the element but it identifies if the element can be locked/Pinned.

 

Elements can be pinned to prevent them from moving. The Element.Pinned property can be used to check if an Element is pinned or to pin or unpin an element.

 

When Element.Pinned is set to true, the element is Pinned so the element cannot be moved or rotated.

                            e.Pinned= true;

Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community