Box

concerns

The Box attribute function draws a box.

 

Syntax

Box(Section, Width, Height, Length)

Return value

Type

Description

Section3D

A Section3D object that describes the drawn box

Parameter

Use

Name

Type

Passing

Description

Required

Section

Section3D

ByVal

The image section to which the box is to be attached. If the box is to be attached to the root level, “Nothing” must be passed

Required

Width

Double

ByVal

Extension in x-direction

Required

Height

Double

ByVal

Extension in y-direction

Required

Length

Double

ByVal

Extension in z-direction

Note

Before editing a Model3D variable, the BeginModify attribute function must be called. After all modifications have been made, the attribute function EndModify must be called so that all changes are saved in the variable.

 

Example

 

Dim P As Model3D

 

P.BeginModify

P.Clear

P.Box(Nothing, 10, 10, 10)

P.EndModify

 

The example draws a box in the root level of the 3D model. First, the change mode of the variable is called. Then all existing contents are deleted, and the box is drawn. After that, the changes are saved in the variable.