Hide Table of Contents
InsertMateReference Method (IFeatureManager)

Obsolete. Superseded by IFeatureManager::InsertMateReference2.

.NET Syntax

Visual Basic (Declaration) 
Function InsertMateReference( _
   ByVal BstrMateReferenceName As System.String, _
   ByVal PrimaryReferenceEntity As Entity, _
   ByVal PrimaryReferenceType As System.Integer, _
   ByVal PrimaryReferenceAlignment As System.Integer, _
   ByVal SecondaryReferenceEntity As Entity, _
   ByVal SecondaryReferenceType As System.Integer, _
   ByVal SecondaryReferenceAlignment As System.Integer, _
   ByVal TertiaryReferenceEntity As Entity, _
   ByVal TertiaryReferenceType As System.Integer, _
   ByVal TertiaryReferenceAlignment As System.Integer _
) As Feature
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim BstrMateReferenceName As System.String
Dim PrimaryReferenceEntity As Entity
Dim PrimaryReferenceType As System.Integer
Dim PrimaryReferenceAlignment As System.Integer
Dim SecondaryReferenceEntity As Entity
Dim SecondaryReferenceType As System.Integer
Dim SecondaryReferenceAlignment As System.Integer
Dim TertiaryReferenceEntity As Entity
Dim TertiaryReferenceType As System.Integer
Dim TertiaryReferenceAlignment As System.Integer
Dim value As Feature
 
value = instance.InsertMateReference(BstrMateReferenceName, PrimaryReferenceEntity, PrimaryReferenceType, PrimaryReferenceAlignment, SecondaryReferenceEntity, SecondaryReferenceType, SecondaryReferenceAlignment, TertiaryReferenceEntity, TertiaryReferenceType, TertiaryReferenceAlignment)
C# 
Feature InsertMateReference( 
   System.string BstrMateReferenceName,
   Entity PrimaryReferenceEntity,
   System.int PrimaryReferenceType,
   System.int PrimaryReferenceAlignment,
   Entity SecondaryReferenceEntity,
   System.int SecondaryReferenceType,
   System.int SecondaryReferenceAlignment,
   Entity TertiaryReferenceEntity,
   System.int TertiaryReferenceType,
   System.int TertiaryReferenceAlignment
)
C++/CLI 
Feature^ InsertMateReference( 
&   System.String^ BstrMateReferenceName,
&   Entity^ PrimaryReferenceEntity,
&   System.int PrimaryReferenceType,
&   System.int PrimaryReferenceAlignment,
&   Entity^ SecondaryReferenceEntity,
&   System.int SecondaryReferenceType,
&   System.int SecondaryReferenceAlignment,
&   Entity^ TertiaryReferenceEntity,
&   System.int TertiaryReferenceType,
&   System.int TertiaryReferenceAlignment
) 

Parameters

BstrMateReferenceName
Name of mate reference
PrimaryReferenceEntity
Pointer to the primary mate, the IEntity object
PrimaryReferenceType
Primary mate's reference type as defined by swMateReferenceType_e
PrimaryReferenceAlignment
Primary mate's reference alignment type as defined swMateReferenceAlignment_e
SecondaryReferenceEntity
Pointer to the secondary mate, the IEntity object
SecondaryReferenceType
Secondary mate's reference type as defined by swMateReferenceType_e
SecondaryReferenceAlignment
Secondary mate's alignment type as defined swMateReferenceAlignment_e
TertiaryReferenceEntity
Pointer to the tertiary mate, the IEntity object
TertiaryReferenceType
Tertiary mate's reference type as defined by swMateReferenceType_e
TertiaryReferenceAlignment
Tertiary mate's reference alignment as defined by swMateReferenceAlignment_e

Return Value

Pointer to the IFeature object

Example

Remarks

Either select the mate references interactively or select them programmatically using IModelDocExtension::SelectByID2 with marks of 1, 2, and 4. If the mate references are interactively selected, then specify NOTHING for PrimaryReferenceEntity, SecondaryReferenceEntity, and TertiaryReferenceEntity.
 

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:   InsertMateReference Method (IFeatureManager)
*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) 2013 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.