> IGetSelections3 Method (IMacroFeatureData)
Welcome
Getting Started
SolidWorks API Help
FeatureWorks API Help
SolidWorks Document Manager API Help
eDrawings API Help
SolidWorks Routing API Help
SolidWorks Simulation API Help
SolidWorks Utilities API Help
SolidWorks Workgroup PDM API Help
Hide Table of Contents Show Table of Contents
IGetSelections3 Method (IMacroFeatureData)

Gets the selected objects for the macro feature.

.NET Syntax

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

Parameters

SelCount
Number of selected objects
Objects
Array of selected objects of size SelCount
ObjectTypes
Array of the selected object types as defined in swSelectType_e of size SelCount
SelMarks
Array of marks associated with the selected objects of size SelCount
DrViews
Array of drawing views of size SelCount
ComponentXForms
  • 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

    Availability

    SolidWorks 2006 FCS, Revision Number 14.0


    Related SolidWorks Forum Content

    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:   IGetSelections3 Method (IMacroFeatureData)
    *Comment:  
    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) 2012 SP05

    The search functionality within the web help is in a beta test phase and you may experience periodic delays or interruptions in its performance. These are the normal and ordinary features of a beta test and shall not under any circumstances give rise to any liability on the part of DS SolidWorks or its licensors. The topics within the Web-based help are not beta topics; they document API Help (English only) 2012 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.