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 the level of an element

1 REPLY 1
SOLVED
Reply
Message 1 of 2
FRFR1426
3292 Views, 1 Reply

Change the level of an element

How can I change the level of an element? Level property is read-only...

 

There is a trick or a hidden method somewhere?

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
Tags (1)
1 REPLY 1
Message 2 of 2
Revitalizer
in reply to: FRFR1426

Hi,

 

instead of setting the level *property*, you could try to set the level *parameter*.

 

Depending on the type and category of the element you want to modify, you could set the BuiltInParameter.FAMILY_LEVEL_PARAM (for FamilyInstances), for example.

 

Use RevitLookup to get the level parameters for other kinds of elements.

Level params usually are set with an ElementId:

 

http://thebuildingcoder.typepad.com/blog/2011/01/family-instance-missing-level-property.html

 

 

Best regards,

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community