Hide Table of Contents
IGetSectionProperties2 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 IGetSectionProperties2( _
   ByVal Count As System.Integer, _
   ByRef Sections As System.Object _
) As System.Double
Visual Basic (Usage) 
Dim instance As IModelDocExtension
Dim Count As System.Integer
Dim Sections As System.Object
Dim value As System.Double
 
value = instance.IGetSectionProperties2(Count, Sections)
C# 
System.double IGetSectionProperties2( 
   System.int Count,
   ref System.object Sections
)
C++/CLI 
System.double IGetSectionProperties2( 
&   System.int Count,
&   System.Object^% Sections
) 

Parameters

Count
Number of sections
Sections
Array of sections

Return Value

  • in-process, unmanaged C++: Pointer to an array of size 24 of the section properties for the selected items (see Remarks)
  • VBA, VB.NET, C#, and C++/CLI: Not supported

    See In-process Methods for details about this type of method.

  • 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:   IGetSectionProperties2 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) 2018 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.