Message 1 of 8

Not applicable
05-15-2018
07:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to change the reference level and the offset of a duct corner through the revit API.
This is what I did so far:
private void changeReferenceAndOffset(Element elem, Level lvl, double newOffset) { Parameter param = elem.get_Parameter(BuiltInParameter.INSTANCE_FREE_HOST_OFFSET_PARAM); param.Set(newOffset); param = elem.get_Parameter(BuiltInParameter.FAMILY_LEVEL_PARAM); param.Set(lvl.Id); }
The element and the level I send to this function are valid. The offset changes, but the reference level doesn't. Yet I'm still able to change it in the properties window in Revit.
What did I do wrong here ?
I'm using Revit 2018.2.
Solved! Go to Solution.