Hide Table of Contents
InsertMateReference2 Method (IFeatureManager)

Inserts a mate reference for a part or assembly document.

.NET Syntax

Visual Basic (Declaration) 
Function InsertMateReference2( _
   ByVal BstrMateReferenceName As String, _
   ByVal PrimaryReferenceEntity As Entity, _
   ByVal PrimaryReferenceType As Integer, _
   ByVal PrimaryReferenceAlignment As Integer, _
   ByVal PrimaryReferenceAlignAxes As Boolean, _
   ByVal SecondaryReferenceEntity As Entity, _
   ByVal SecondaryReferenceType As Integer, _
   ByVal SecondaryReferenceAlignment As Integer, _
   ByVal SecondaryReferenceAlignAxes As Boolean, _
   ByVal TertiaryReferenceEntity As Entity, _
   ByVal TertiaryReferenceType As Integer, _
   ByVal TertiaryReferenceAlignment As Integer _
) As Feature
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim BstrMateReferenceName As String
Dim PrimaryReferenceEntity As Entity
Dim PrimaryReferenceType As Integer
Dim PrimaryReferenceAlignment As Integer
Dim PrimaryReferenceAlignAxes As Boolean
Dim SecondaryReferenceEntity As Entity
Dim SecondaryReferenceType As Integer
Dim SecondaryReferenceAlignment As Integer
Dim SecondaryReferenceAlignAxes As Boolean
Dim TertiaryReferenceEntity As Entity
Dim TertiaryReferenceType As Integer
Dim TertiaryReferenceAlignment As Integer
Dim value As Feature
 
value = instance.InsertMateReference2(BstrMateReferenceName, PrimaryReferenceEntity, PrimaryReferenceType, PrimaryReferenceAlignment, PrimaryReferenceAlignAxes, SecondaryReferenceEntity, SecondaryReferenceType, SecondaryReferenceAlignment, SecondaryReferenceAlignAxes, TertiaryReferenceEntity, TertiaryReferenceType, TertiaryReferenceAlignment)
C# 
Feature InsertMateReference2( 
   string BstrMateReferenceName,
   Entity PrimaryReferenceEntity,
   int PrimaryReferenceType,
   int PrimaryReferenceAlignment,
   bool PrimaryReferenceAlignAxes,
   Entity SecondaryReferenceEntity,
   int SecondaryReferenceType,
   int SecondaryReferenceAlignment,
   bool SecondaryReferenceAlignAxes,
   Entity TertiaryReferenceEntity,
   int TertiaryReferenceType,
   int TertiaryReferenceAlignment
)
C++/CLI 
Feature^ InsertMateReference2( 
&   String^ BstrMateReferenceName,
&   Entity^ PrimaryReferenceEntity,
&   int PrimaryReferenceType,
&   int PrimaryReferenceAlignment,
&   bool PrimaryReferenceAlignAxes,
&   Entity^ SecondaryReferenceEntity,
&   int SecondaryReferenceType,
&   int SecondaryReferenceAlignment,
&   bool SecondaryReferenceAlignAxes,
&   Entity^ TertiaryReferenceEntity,
&   int TertiaryReferenceType,
&   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
PrimaryReferenceAlignAxes
True to align with the axes of the coordinate system or origin when forming a mate, false to not
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
SecondaryReferenceAlignAxes
True to align with the axes of the coordinate system or origin when forming a mate, false to not
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

IFeature

Example

 

See Also

Availability

SolidWorks 2010 FCS, Revision Number 18.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:   InsertMateReference2 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) 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.