Wall Top Constraint Before Creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have walls coming in through the API with the top constraint set to level 2 but I want it to be set to Unconnected. I have found how to do this after the wall was created but it leaves it at the height as if it was constrained to level 2. I was wondering if there was a way through the API to change the top constraint before the wall was created or revert it back to the shape of it's profile. Below is the code I'm using to change the top constraint.
newWall = Wall.Create(doc, profile, wall_type.Id, levelId, false, normal);
Parameter top_constraint_param = newWall.get_Parameter(BuiltInParameter.WALL_HEIGHT_TYPE);
top_constraint_param.Set("Unconnected");
top_constraint_param.SetValueString("Unconnected");
top_constraint_param.Set(ElementId.InvalidElementId);