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.

Attachments (2)

img
before.png
Type: image/png
Downloaded 5 times
Size: 14,36 KiB
img
after.png
Type: image/png
Downloaded 4 times
Size: 11,20 KiB