Hide Table of Contents
ICreateBodyFromBox2 Method (IModeler)

Obsolete. Superseded by IModeler::CreateBodyFromBox3.

.NET Syntax

Visual Basic (Declaration) 
Function ICreateBodyFromBox2( _
   ByRef BoxDimArray As System.Double _
) As Body2
Visual Basic (Usage) 
Dim instance As IModeler
Dim BoxDimArray As System.Double
Dim value As Body2
 
value = instance.ICreateBodyFromBox2(BoxDimArray)
C# 
Body2 ICreateBodyFromBox2( 
   ref System.double BoxDimArray
)
C++/CLI 
Body2^ ICreateBodyFromBox2( 
&   System.double% 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; 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

Availability

SOLIDWORKS 2001Plus FCS, Revision Number 10.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:   ICreateBodyFromBox2 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) 2017 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.