How to Set Window Family Sill Height Instance Parameter editable on insert?

How to Set Window Family Sill Height Instance Parameter editable on insert?

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

How to Set Window Family Sill Height Instance Parameter editable on insert?

Anonymous
Not applicable

I see in this post:

https://bimchapters.blogspot.com/2018/12/resetting-default-instance-parameter-in.html

A window family with the Sill Height parameter editable at the moment of insert the symbol on the project, how I can replicate this setting behavior with another window family?

0 Likes
1,004 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk

As far as I can tell from the article you point out, this is not a programming question, but a question on manually setting up the family definition appropriately.

 

In that case, unfortunately, this is not the best place to ask such a question.

 

Please note that this discussion forum is dedicated to programming Revit using the Revit API.

 

Therefore, you cannot expect an answer to a question such as yours relating to installation, product usage or end user support issues here.

 

You should try one of the non-API Revit product support discussion forums instead for that:

 

https://forums.autodesk.com/t5/revit-api-forum/this-forum-is-for-revit-api-programming-questions-not...

 

The people there are much better equipped to answer your question than us programming nerds.

 

I hope this clarifies.

 

Thank you for your cooperation and understanding.

 

Best regards,

 

Jeremy

 



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

0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks for the answer but, my question refers to the configuration of the family via code c #, as it would be possible to set the parameter so that it is editable by the user at the time of inserting the symbol.


I will try to prove an idea I have about how to modify the parameter status, editable status, via the configuration of another related parameter, the Default Sill Height.

 

In the Revit interface, if the Default Sill Height parameter is unlocked, the Sill Height instance parameter becomes editable. Therefore, I will try to achieve the same effect through the API code.

 

If this is an API code forum, it should be understood that the queries are how operations or modifications are made by programming the API using C # code, for example.

 

0 Likes
Message 4 of 5

jeremytammik
Autodesk
Autodesk

It should indeed be understood.

 

Unfortunately, a large number of queries are submitted here every day in which this basic fact is not understood.

  

Therefore, I thank you for your clarification.

  

It is certainly possible (and easy) to set the value of a parameter.

  

If you wish to do so automatically immediately after a window instance has been inserted, that is also possible.

  

One possible (and maybe the most appropriate) approach to achieve this would be by using the dynamic model updater framework DMU.

  

Here are a number of examples and detailed descriptions on using it:

  

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.31

  



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

0 Likes
Message 5 of 5

Anonymous
Not applicable

The families I work with are created using C # code, when are inserted into the Revit project, the data is read from an import file. The process is to read a template of the correct family, for example a window, add user parameters and define values for standard, instance and type parameters. This is when I need to define the parameter "Default Sill Height" as not locked. But I can't find any method in the API to define a non-locked standard parameter. The Set method is to define the value only.

 

Defining the value for a family parameter, using C # code, is not a problem, the problem lies in the need to set this parameter as not locked (the check box in the right column of the properties of each parameter in the table Dialogue of family type parameters).

 

What I need is, via C # code, to deactivate the locked state of the "Default Sill Height" type parameter, set to False?

 

Thanks,

 

Felipe.

0 Likes