Hide Table of Contents
CreateBodyFromBox Method (IModeler)

Obsolete. Superseded by IModeler::CreateBodyFromBox3.

.NET Syntax

Visual Basic (Declaration) 
Function CreateBodyFromBox( _
   ByVal BoxDimArray As System.Object _
) As System.Object
Visual Basic (Usage) 
Dim instance As IModeler
Dim BoxDimArray As System.Object
Dim value As System.Object
 
value = instance.CreateBodyFromBox(BoxDimArray)
C# 
System.object CreateBodyFromBox( 
   System.object BoxDimArray
)
C++/CLI 
System.Object^ CreateBodyFromBox( 
&   System.Object^ BoxDimArray
) 

Parameters

BoxDimArray
Array of 9 doubles (see Remarks)

Return Value

Body

Example

Remarks

The input parameter is the following array of doubles:

[ boxFaceCenter[3], boxAxis[3], boxWidth, boxLength, boxHeight ]

where:

boxFaceCenter[3]

XYZ location that represents the center of one of the box faces.

boxAxis[3]

XYZ direction. The box will be extruded along this vector from the boxFaceCenter location, a distance of boxHeight.

boxWidth

Box width. If boxAxis is parallel to the Z axis (0,0,1), then this value represents the dimension that is parallel to the X-axis; otherwise, the orientation is not defined.

boxLength

Box length. If boxAxis is parallel to the Z axis (0,0,1), then this value represents the dimension that is parallel to the Y axis; otherwise, the orientation is not defined.

boxHeight

Height to extrude along the boxAxis direction. If boxHeight is 0, a sheet body will be created of dimension boxWidth x boxLength and whose normal is defined by boxAxis.

 

See Also



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   CreateBodyFromBox Method (IModeler)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2019 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.