How to unlock lock inside ceiling sketch to wall?

How to unlock lock inside ceiling sketch to wall?

Anonymous
Not applicable
1,125 Views
4 Replies
Message 1 of 5

How to unlock lock inside ceiling sketch to wall?

Anonymous
Not applicable

I would like to unlock the ceiling sketch that is locked to walls in a project.

I would probably collect all ceilings, access all their sketch lines and then unlock every padlock to a wall or just all padlocks. is this possible i cant find the properties to do this?

0 Likes
Accepted solutions (1)
1,126 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk
Accepted solution

If the elements are pinned you can use the Element.Pinned property.

 

If they are constrained, the constraint is a separate element that you might be able to delete.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 5

jlpgy
Advocate
Advocate

Hi @jeremytammik :

I would like to ask a further question:

How can I access the constrain object?

For example, in Family document:

图像 1.png

In family doc, there are a lot of "locks". It it possible for API to obtain this object?

Sometimes I want to know which two objects are constrained by this contrain, or I want to programmatically delete it.

单身狗;代码狗;健身狗;jolinpiggy@hotmail.com
0 Likes
Message 4 of 5

jeremytammik
Autodesk
Autodesk

Dear @jlpgy ,

 

Have you installed and tested RevitLookup?

 

https://github.com/jeremytammik/RevitLookup

 

If not, I would suggest doing so right now.

 

That should enable you to immediately answer your question yourself.

 

Good luck and have fun!

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 5 of 5

jlpgy
Advocate
Advocate

I found it, it's a <Dimension> object, can be accessed by Snoop DB.

单身狗;代码狗;健身狗;jolinpiggy@hotmail.com
0 Likes