Hide Table of Contents
IGetSelections3 Method (IMacroFeatureData)

Gets the selected objects for the macro feature.

.NET Syntax

Visual Basic (Declaration) 
Sub IGetSelections3( _
   ByVal SelCount As System.Integer, _
   ByRef Objects As System.Object, _
   ByRef ObjectTypes As System.Integer, _
   ByRef SelMarks As System.Integer, _
   ByRef DrViews As View, _
   ByRef ComponentXForms As MathTransform _
Visual Basic (Usage) 
Dim instance As IMacroFeatureData
Dim SelCount As System.Integer
Dim Objects As System.Object
Dim ObjectTypes As System.Integer
Dim SelMarks As System.Integer
Dim DrViews As View
Dim ComponentXForms As MathTransform
instance.IGetSelections3(SelCount, Objects, ObjectTypes, SelMarks, DrViews, ComponentXForms)
void IGetSelections3( 
   System.int SelCount,
   out System.object Objects,
   out System.int ObjectTypes,
   out System.int SelMarks,
   out View DrViews,
   out MathTransform ComponentXForms
void IGetSelections3( 
&   System.int SelCount,
&   [Out] System.Object^ Objects,
&   [Out] System.int ObjectTypes,
&   [Out] System.int SelMarks,
&   [Out] View^ DrViews,
&   [Out] MathTransform^ ComponentXForms


Number of selected objects
Array of selected objects of size SelCount
Array of the selected object types as defined in swSelectType_e of size SelCount
Array of marks associated with the selected objects of size SelCount
Array of drawing views of size SelCount
  • in-process, unmanaged C++: Pointer to an array of transforms for the selections' components
  • VBA, VB.NET, C#, and C++/CLI: Not supported

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

  • Remarks

    Before calling this method, call IMacroFeatureData::GetSelectionCount to determine the size of the arrays.

    When a macro feature is inserted in-context and an entity on a different component is selected, you may need to know that component's transform.


    If the assembly is the active document, then you can use IEntity::IGetComponent2 or IComponent2::Transform2 to get the component's transform.


    However, if the part for the component is open for editing and a macro feature is being edited, then you must use IMacroFeatureData::GetSelections3 to get the component's transform. This method returns the transform and the selection. If the selection belongs to the same part as the macro feature, then NULL is returned. See also Macro Features and Component Transforms.


    See Accessing Selections that Define Features for additional details on using this method.


    See Also


    SOLIDWORKS 2006 FCS, Revision Number 14.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

    Subject:   Feedback on Help Topics
    Page:   IGetSelections3 Method (IMacroFeatureData)
    *   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:


    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

    Web Help Content Version: API Help (English only) 2015 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.