[Question] Brick wall with Visual scripting


Hello everyone,
In my office we are trying to recreate a brick wall with Visual Scripting. Our goal is to have walls that respect the dimensions of the bricks, both in lenght and in height. We need the final object to still be a wall, not singular elements/solids/bricks.

Our bricks are Ytong like so they can be cut but in pieces above 5cm (otherwise they break). So for example if my brick is 62,5cm wide and I draw a wall that is 625cm (10 bricks) the script should accept it. But if the wall is between 625 and 629 I want it to go back to 625 or skip to 630, since I cannot have a piece smaller than 5cm. The same type of rule should apply to the height of the wall (height of the brick is 20cm).

We don't know much about scripting and would really appreciate any hint or advice you can give us!

You can check the example \Architecture\Objects\WallInput.pyp or \Architecture\FloorPlan\AngularFloorPlan.pyp to get some idea how to create a wall with VS.

It is possible to create a linear wall based on the size of your brick. You need to trim the axis for the node WallElement beforehand. E.g., use round function to do that. Check attachments for more info.

Product Owner API, Allplan GmbH

Attachments (2)

Type: image/gif
Downloaded 82 times
Size: 262,20 KiB
Type: image/png
Downloaded 82 times
Size: 140,37 KiB

https://campus.allplan.com/ uses cookies  -  More information

Accept