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 System.String, _
   ByVal PrimaryReferenceEntity As Entity, _
   ByVal PrimaryReferenceType As System.Integer, _
   ByVal PrimaryReferenceAlignment As System.Integer, _
   ByVal PrimaryReferenceAlignAxes As System.Boolean, _
   ByVal SecondaryReferenceEntity As Entity, _
   ByVal SecondaryReferenceType As System.Integer, _
   ByVal SecondaryReferenceAlignment As System.Integer, _
   ByVal SecondaryReferenceAlignAxes As System.Boolean, _
   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 PrimaryReferenceAlignAxes As System.Boolean
Dim SecondaryReferenceEntity As Entity
Dim SecondaryReferenceType As System.Integer
Dim SecondaryReferenceAlignment As System.Integer
Dim SecondaryReferenceAlignAxes As System.Boolean
Dim TertiaryReferenceEntity As Entity
Dim TertiaryReferenceType As System.Integer
Dim TertiaryReferenceAlignment As System.Integer
Dim value As Feature
 
value = instance.InsertMateReference2(BstrMateReferenceName, PrimaryReferenceEntity, PrimaryReferenceType, PrimaryReferenceAlignment, PrimaryReferenceAlignAxes, SecondaryReferenceEntity, SecondaryReferenceType, SecondaryReferenceAlignment, SecondaryReferenceAlignAxes, TertiaryReferenceEntity, TertiaryReferenceType, TertiaryReferenceAlignment)
C# 
Feature InsertMateReference2( 
   System.string BstrMateReferenceName,
   Entity PrimaryReferenceEntity,
   System.int PrimaryReferenceType,
   System.int PrimaryReferenceAlignment,
   System.bool PrimaryReferenceAlignAxes,
   Entity SecondaryReferenceEntity,
   System.int SecondaryReferenceType,
   System.int SecondaryReferenceAlignment,
   System.bool SecondaryReferenceAlignAxes,
   Entity TertiaryReferenceEntity,
   System.int TertiaryReferenceType,
   System.int TertiaryReferenceAlignment
)
C++/CLI 
Feature^ InsertMateReference2( 
&   System.String^ BstrMateReferenceName,
&   Entity^ PrimaryReferenceEntity,
&   System.int PrimaryReferenceType,
&   System.int PrimaryReferenceAlignment,
&   System.bool PrimaryReferenceAlignAxes,
&   Entity^ SecondaryReferenceEntity,
&   System.int SecondaryReferenceType,
&   System.int SecondaryReferenceAlignment,
&   System.bool SecondaryReferenceAlignAxes,
&   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
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) 2018 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.