17.05.2024 - 14:43
*
[Hilfreichste Antwort]
Hi Bernd,
the upper and lower elevation is set with the Planereferences property. It is part of the ArchBaseProperty class, from which classes like WallTierProperties inherit from. This is why you dont see this property listed on WallTierProperties page, but you see the there Bases: ArchBaseProperties at the beginning.
You can make a wall tier upper and lower edge follow planes or set both to a fixed elevation. Both is possible with SetBottomPlaneDependency. An example, how it could look like for a fixed elevations (-5 m bottom and 5m top elevation):
plane_ref = AllplanArchElements.PlaneReferences(self.coord_input.GetInputViewDocument(),
AllplanElementAdapter.BaseElementAdapter())
plane_ref.SetTopPlaneDependency(AllplanArchElements.PlaneReferences.PlaneReferenceDependency.eAbsElevation)
plane_ref.SetBottomPlaneDependency(AllplanArchElements.PlaneReferences.PlaneReferenceDependency.eAbsElevation)
plane_ref.TopElevation = 5000
plane_ref.BottomElevation = -5000
wall_tier_prop.SetPlaneReferences(plane_ref)
The wall_tier_prop is here the WallTierProperties object, you are referring to.
Hope that helps!
Best,
Bart