[Pregunta] Smartpart: Wiederholender runter Querschnitt mit Revolve Funktion


Guten Tag, ich bastel mir gerade ein ein Smartpart wo ich einen "Längsschnitt" habe, welcher mit Revolve erstellt wird, und dann mit einer Schleife hintereinander erzeugt wird. Leider wird daraus nicht ein Körper, sondern mehrere. Kann man also irgenwie vereinfach revolve einen Querschnitt mitgeben, den es x-mal ausführt?

Grüße Paul

Adjuntos (2)

Type: image/png
Descargado 58 veces
Size: 5,65 KiB
Type: image/png
Descargado 47 veces
Size: 23,29 KiB

Hello Paul,

Use PUT function to send data to buffer and then you can use FOR...NEXT function.

Something like that:

FOR ii = 0 to i_max
   PUT ii * 0.25 , r_out , 0 
   PUT ( ii * 0.25 ) + 0.05 , r_out , 0 
   PUT ( ii * 0.25 ) + 0.05 , r_in , 0 
   PUT ( ii * 0.25 ) + 0.2 , r_in , 0 
   PUT ( ii * 0.25 ) + 0.2 , r_out , 0 
NEXT ii 
! Last point
PUT ( i_max + 1 ) * 0.25 , r_out , 0 

REVOLVE NUM_SP / 3 , 360 , 15 , GET ( NUM_SP )

With "15" ( 1 + 2 + 4 + 8 ), you will get a full volume, not only surfaces.


Hey Bertrand,

now it works perfectly, thanks!

Hey, probably you can give me a tipp, whether allplan provides a function i can "sweep" a profile a long any path and generate a boby?

bg Paul

Adjuntos (1)

Type: image/png
Descargado 33 veces
Size: 16,75 KiB

Hello,

You can use TUBE for that.
Look at the online help. You have the description for all functions.



https://campus.allplan.com/ utiliza cookies  -  Aqui

Acéptalo