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