Revit API

Reply
Valued Contributor
FRFR1426
Posts: 98
Registered: ‎04-05-2012
Message 1 of 2 (392 Views)
Accepted Solution

Change the level of an element

392 Views, 1 Replies
11-21-2012 07:25 AM

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

 

There is a trick or a hidden method somewhere?

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

Distinguished Contributor
Revitalizer
Posts: 112
Registered: ‎09-07-2012
Message 2 of 2 (389 Views)

Re: Change the level of an element

11-21-2012 07:57 AM 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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.