Das Wissen aller Anwender nutzen

Im Allplan Connect Forum tauschen sich Anwender aus, geben wertvolle Tipps oder beraten sich bei ganz konkreten Aufgabenstellungen − auch international.
Und damit wirklich keine Frage unbeantwortet bleibt, unterstützen die Mitarbeiter des Technischen Supports ebenfalls aktiv das Forum.

Es erwarten Sie:

  • Foren-Vielfalt aus CAD Architektur, CAD Ingenieurbau uvm.
  • Tipps von User für User
  • international: Deutsch, Englisch, Italienisch, Französisch und Tschechisch

Melden Sie sich jetzt an und diskutieren Sie mit!

Zur Registrierung

[Frage] Brick wall with Visual scripting

Schlagworte:
  • Wall
  • Brick
  • Block
  • Set
  • Minimum
  • Lenght

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

Anhänge (2)

Typ: image/gif
91-mal heruntergeladen
Größe: 262,20 KiB
Typ: image/png
86-mal heruntergeladen
Größe: 140,37 KiB