Revit API

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

Change the level of an element

307 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?

Valued Contributor
Revitalizer
Posts: 78
Registered: ‎09-07-2012
Message 2 of 2 (304 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Revit Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Revit helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Revit

Twitter

Facebook

Blogs

Youtube