Change level on line based family

Change level on line based family

Anonymous
Not applicable
907 Views
2 Replies
Message 1 of 3

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
Accepted solutions (1)
908 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
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
Message 3 of 3

Anonymous
Not applicable

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

0 Likes