Skip to content

Latest commit

 

History

History
71 lines (60 loc) · 1.36 KB

File metadata and controls

71 lines (60 loc) · 1.36 KB

BeginRoof

Description

Procedure BeginRoof creates a simple roof object in a VectorWorks document.

{| class="wikitable_c" |+ Table - Roof Miter Styles

! Miter Style !! Constant
Vertical
-
Horizontal
-
Double
-
Square
}

*3-D View of Roof

[[Image:roof.gif]]

PROCEDURE BeginRoof(
				p1X,p1Y           : REAL;
				p2X,p2Y           : REAL;
				upslopeX,upslopeY : REAL;
				riseDistance      : REAL;
				runDistance       : REAL;
				miter             : INTEGER;
				vertPart          : REAL);
def vs.BeginRoof(p1, p2, upslope, riseDistance, runDistance, miter, vertPart):
    return None

Parameters

Name Type Description
p1 REAL Coordinates of roof axis start point.
p2 REAL Coordinates of roof axis end point.
upslope REAL Coordinates of upslope definition point.
riseDistance REAL Rise distance.
runDistance REAL Run distance.
miter INTEGER Edge miter style of roof.
vertPart REAL Dimension of vertical miter for double miter style.

Examples

==== VectorScript ====

BeginRoof(1,1,5,1,2,2,0.5,1,1,0);
ClosePoly;
Poly(1,1,3,1,3.5,2,4,1,5,1,5,5,1,5);
EndGroup;

==== Python ====

vs.BeginRoof(1,1,5,1,2,2,0.5,1,1,0)
vs.ClosePoly()
vs.Poly(1,1,3,1,3.5,2,4,1,5,1,5,5,1,5)
vs.EndGroup()

Version

Availability: from MiniCAD 4.0

Category

  • Objects - Roofs