- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to make a bunch of wall openings Top Constraint = Unconnected
I can change the levels for [base constraint] en [top constraint] to another level, but i can't get the [Top Constraint] to be [Unconnected].
This is what I tried: (vb.net)
(MyOpening is already the right element out of MyElementCollector.OfCategory(BuiltInCategory.OST_SWallRectOpening))
Dim MyListOfParameter As List(Of Parameter) = (From MyParameter As Parameter In MyOpening.Parameters).ToList()
Dim MyParameterTopConstraint As Parameter = MyListOfParameter.First(Function(p) p.Definition.Name = "Top Constraint")
MyParameterTopConstraint.Set("Unconnected")
MyParameterTopConstraint.SetValueString("Unconnected")
MyParameterTopConstraint.Dispose()
MyParameterTopConstraint.Set(-1)
When I read the elementId out of the parameter when is is set to 'Unconnected', it returns -1
but setting it to -1 does not work.
please help.
Thanks,
Chris Hanschen
LKSVDD Architecten, Hengelo, Netherlands
p.s.
Somebody builded a Revit model of an existing building, i need to use the model, but is has over 1000 rectangular wall openings
i am making an addin to manage all aspects of these element, such al base offset, height, levels, etc.
Solved! Go to Solution.