REVOLVE
generates a surface of revolution, which is described by a polyline defined in the XY plane rotating about the X axis. Arcs and segments can be defined within the polyline by using additional status code values.
Syntax
REVOLVE n, alpha, mask, x1, y1, s1, ... , xn, yn, sn
Parameters
n
(integer): number of polyline nodes
alpha
(decimal, in degrees): rotation angle
mask
: controls the existence of the bottom, top and - in case of alpha is < 360 degrees - cut surfaces (see below)
xi
, yi
(decimal): X and Y coordinates of the polyline nodes
si
(boolean): with si
= -1 holes are defined directly
parameter restrictions: n
³ 2; yi
³ 0; yi
and y(i + 1)
(i.e., the Y coordinate of two adjacent nodes) cannot be zero at the same time
Masking
mask
= j1 + 2*j2 + 4*j3 + 8*j4
with j1
, j2
, j3
, j4
may be 0 or 1j1
(1): bottom surface is presentj2
(2): top surface is presentj3
(4): cut surface at initial angle is presentj4
(8): cut surface at final angle is present
Remarks
Usable since script version 1.1 (Allplan 2012-1).
(C) ALLPLAN GmbH |
Privacy policy |