Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
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: 

How to unlock lock inside ceiling sketch to wall?

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
886 Views, 4 Replies

How to unlock lock inside ceiling sketch to wall?

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?

4 REPLIES 4
Message 2 of 5
jeremytammik
in reply to: Anonymous

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
in reply to: jeremytammik

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
Message 4 of 5
jeremytammik
in reply to: jlpgy

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

Message 5 of 5
jlpgy
in reply to: jeremytammik

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

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

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

Post to forums  

Rail Community


Autodesk Design & Make Report