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
672 Views, 2 Replies

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

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

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  

Rail Community


Autodesk Design & Make Report