Hide Table of Contents
GetEditTargetTransform Method (IMacroFeatureData)

Gets the transform of the component where the macro feature resides if at least one selection in the macro feature belongs to a different component.

.NET Syntax

Visual Basic (Declaration) 
Function GetEditTargetTransform() As MathTransform
Visual Basic (Usage) 
Dim instance As IMacroFeatureData
Dim value As MathTransform
 
value = instance.GetEditTargetTransform()
C# 
MathTransform GetEditTargetTransform()
C++/CLI 
MathTransform^ GetEditTargetTransform(); 

Return Value

Math transform of the component where the macro feature resides if at least one selection in the macro feature belongs to a different component, or NULL if all of the selections in the macro feature belong to the component where the macro feature resides

Remarks

When regenerating a macro feature in a part that is a component in an assembly, you cannot get the component's transform where the macro feature resides because you cannot get the component using IEntity::GetComponent or IEntity::IGetComponent2 in a part document. However, you may need the component's transform because references from other components to it often need to be transformed.

This method provides this transform. If there are no external references among the macro feature selections (IMacroFeatureData::GetSelections3 or IMacroFeatureData::IGetSelections3), then this method returns NULL. If there are external references among the macro feature selections, then this method returns the transform of the component where the macro feature resides.

 

For example, if the macro feature includes a selection box in which the user can select a face, and the user selects a face on a different component, then this method can get the component's transform where the macro feature resides. However, if all of the selections in the macro feature belong to the component where the macro feature resides, then this method returns NULL because you probably will not need the transform. 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:   GetEditTargetTransform 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) 2010 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.