Hide Table of Contents
GetSelections3 Method (IMacroFeatureData)

Gets the selected objects for the macro feature.

.NET Syntax

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

Parameters

Objects
Array of selected objects
ObjectTypes

Array of selected object types as defined in swSelectType_e

SelMarks
Array of marks for the selected objects
DrViews
Array of drawing views
ComponentXForms
Array of transforms for the selections' components

Example

Remarks

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::GetComponent 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


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:   GetSelections3 Method (IMacroFeatureData)
*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) 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.