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: 

Change level on line based family

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
700 Views, 2 Replies

Change level on line based family

Anonymous
Not applicable

Good day! I try to change my familyinstance level in model by

myFam.get_Parameter(BuiltInParameter.FAMILY_LEVEL_PARAM).Set(level)

But have error "The parameter is read-only". The family made of "Generic Model line based.rft" template. I don't see any  other appropriate built-in parameter.  Is there way to change level on element?

0 Likes

Change level on line based family

Good day! I try to change my familyinstance level in model by

myFam.get_Parameter(BuiltInParameter.FAMILY_LEVEL_PARAM).Set(level)

But have error "The parameter is read-only". The family made of "Generic Model line based.rft" template. I don't see any  other appropriate built-in parameter.  Is there way to change level on element?

Labels (1)
2 REPLIES 2
Message 2 of 3
jeremy_tammik
in reply to: Anonymous

jeremy_tammik
Autodesk
Autodesk
Accepted solution

No, mostly not. In many situations, the element level can only be set when the element is being created. In that case, the API does not provide any method to change it afterwards:

 

https://thebuildingcoder.typepad.com/blog/2020/06/creating-material-texture-and-retaining-pixels.htm...

 

Sorry about that.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

No, mostly not. In many situations, the element level can only be set when the element is being created. In that case, the API does not provide any method to change it afterwards:

 

https://thebuildingcoder.typepad.com/blog/2020/06/creating-material-texture-and-retaining-pixels.htm...

 

Sorry about that.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 3
Anonymous
in reply to: jeremy_tammik

Anonymous
Not applicable

Thanks for clarifying. It is a pity that there is no way to change the level.

0 Likes

Thanks for clarifying. It is a pity that there is no way to change the level.

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

Post to forums  

Autodesk Design & Make Report