Hide Table of Contents
GetSectionProperties2 Method (IModelDocExtension)

Gets the section properties for the following types of selected items: 

  • Planar model face in any document

  • Face on a section plane

  • Crosshatch section face in a section view in a drawing a sketch

  • Sketch

.NET Syntax

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

Parameters

Sections
Array of sections

Return Value

Array of section properties for the selected items (see Remarks)

Example

Remarks

This method clears the selection set.

If...

Then...

The user selected a set of either parallel planes or parallel faces

You can pass an empty sections array

The user selected any items and you pass a sections array

The properties of the user-selected items and the sections array are combined in the returned array

You pass a sections array and you do not want this array combined with the properties of any user-selected items

Clear any user-selected items

The objects in the Sections parameter are added to the current selection set. If the objects are already in the current selection set, an error is generated; that is, status code will be equal to 1, which means invalid input.

The format of the returned array (retval) of size 24:

 

  • retval[0]

status of request:

  • 0 = success

  • 1 = invalid input

  • 2 = selected faces are not in the same or parallel planes

  • 3 = unable to compute section properties

  • retval[1]

area

  • retval[2]

centroid x

  • retval[3]

centroid y

  • retval[4]

centroid z

  • retval[5]

moment of inertia XX

  • reval[6]

moment of inertia YY

  • retval[7]

moment of inertia ZZ

  • retval[8]

moment of inertia -XY

  • retval[9]

moment of inertia -ZX

  • retval[10]

moment of inertia -YZ

  • retval[11]

polar moment of inertia of an area at the centroid

  • retval[12]

angle between principal axis and part axis

  • retval[13]

principal moment of inertia of an area at the centroid, lx

  • retval[14]

principal moment of inertia of an area at the centroid, ly

  • retval[15]

direction vector X for principle axes (x component)

  • retval[16]

direction vector X for principle axes (y component)

  • retval[17]

direction vector X for principle axes (z component)

  • retval[18]

direction vector Y for principle axes (x component)

  • retval[19]

direction vector Y for principle axes (y component)

  • retval[20]

direction vector Y for principle axes (z component)

  • retval[21]

direction vector Z for principle axes (x component)

  • retval[22]

direction vector Z for principle axes (y component)

  • retval[23]

direction vector Z for principle axes (z component)

 

This method returns metric units unless explicitly specified otherwise.

 

See Also

Availability

SOLIDWORKS 2005 FCS, Revision Number 13.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:   GetSectionProperties2 Method (IModelDocExtension)
*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) 2016 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.