Hide Table of Contents
CreateBodyFromBox3 Method (IModeler)

Creates a temporary body from the specified box dimensions.

.NET Syntax

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

Parameters

BoxDimArray
Array of 9 doubles (see Remarks)

Return Value

Body

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; the new body is rotated to the input boxAxis direction and translates it to the boxFaceCenter.

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; the new body is rotated to the input boxAxis direction and translates it to the boxFaceCenter.

boxHeight

Height to extrude along the boxAxis direction. If boxHeight is 0, a sheet body and whose normal is defined by boxAxis.

 

See Also

Availability

SolidWorks 2008 FCS, Revision Number 16.0


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:   CreateBodyFromBox3 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) 2013 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.