12.04.2021 - 20:39
Hi,
I have been trying to create a horizontal section and want to have the view in the middle of an element. However, Allplan is considering the height of the section as of the elements although I have defined the section box in the script.
As seen in the screenshots, the section box looks great when I drag the .pyp file into Allplan, but once I finish and click esc, all section boxes goes along the height of the elements.
I tried to solve the issue by adding lines of SectionBody.IsHeightFromElementOn, SectionBody.TopLevel and SectionBody.BottomLevel. The result is still the same.