[Question] How do I set the upper and lower elevation of a wall tier


I found how to set the thickness ... There is even a visual scripting node wich shows how to use it in Python.

But I found nothing in the regard of upper and lower elevation (z-coord) of the wall tier. I assume both are set to absolute z-values and not to follow some planes.

https://pythonparts.allplan.com/2024/api_reference/InterfaceStubs/NemAll_Python_ArchElements/WallTierProperties/

cheers bernd

BIM, BAM, BOOM
BIM-Modelle Tragwerksplaner --> http://www.bimstatik.ch/
My Allplan PythonParts --> https://github.com/BIMStatik/AllplanPythonParts
LinkedIN --> https://ch.linkedin.com/in/bernd-hahnebach-269b855a

Hilfreichste Antwort anzeigen Hilfreichste Antwort verbergen

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

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

Hi Bart,

thanks for your answer and the explanation. I will give it a try and report back.

cheers bernd

BIM, BAM, BOOM
BIM-Modelle Tragwerksplaner --> http://www.bimstatik.ch/
My Allplan PythonParts --> https://github.com/BIMStatik/AllplanPythonParts
LinkedIN --> https://ch.linkedin.com/in/bernd-hahnebach-269b855a