Hide Table of Contents
Edit Method (IMateReference)

Lets you edit the selected mate reference.

.NET Syntax

Visual Basic (Declaration) 
Function Edit( _
   ByVal BstrMateReferenceName As String, _
   ByVal PrimaryReferenceEntity As Entity, _
   ByVal PrimaryReferenceType As Integer, _
   ByVal PrimaryReferenceAlignment As Integer, _
   ByVal SecondaryReferenceEntity As Entity, _
   ByVal SecondaryReferenceType As Integer, _
   ByVal SecondaryReferenceAlignment As Integer, _
   ByVal TertiaryReferenceEntity As Entity, _
   ByVal TertiaryReferenceType As Integer, _
   ByVal TertiaryReferenceAlignment As Integer _
) As Boolean
Visual Basic (Usage) 
Dim instance As IMateReference
Dim BstrMateReferenceName As String
Dim PrimaryReferenceEntity As Entity
Dim PrimaryReferenceType As Integer
Dim PrimaryReferenceAlignment As Integer
Dim SecondaryReferenceEntity As Entity
Dim SecondaryReferenceType As Integer
Dim SecondaryReferenceAlignment As Integer
Dim TertiaryReferenceEntity As Entity
Dim TertiaryReferenceType As Integer
Dim TertiaryReferenceAlignment As Integer
Dim value As Boolean
 
value = instance.Edit(BstrMateReferenceName, PrimaryReferenceEntity, PrimaryReferenceType, PrimaryReferenceAlignment, SecondaryReferenceEntity, SecondaryReferenceType, SecondaryReferenceAlignment, TertiaryReferenceEntity, TertiaryReferenceType, TertiaryReferenceAlignment)
C++/CLI 
bool Edit( 
&   String^ BstrMateReferenceName,
&   Entity^ PrimaryReferenceEntity,
&   int PrimaryReferenceType,
&   int PrimaryReferenceAlignment,
&   Entity^ SecondaryReferenceEntity,
&   int SecondaryReferenceType,
&   int SecondaryReferenceAlignment,
&   Entity^ TertiaryReferenceEntity,
&   int TertiaryReferenceType,
&   int TertiaryReferenceAlignment
) 

Parameters

BstrMateReferenceName
Name of the new mate reference, which replaces the selected mate reference
PrimaryReferenceEntity
Primary mate reference entity, a pointer to an IEntity object
PrimaryReferenceType
Type of mate as defined by swMateReferenceType_e for PrimaryReferenceEntity
PrimaryReferenceAlignment
Type of alignment as defined by swMateReferenceAlignment_e for PrimaryReferenceEntity
SecondaryReferenceEntity
Secondary mate reference entity, a pointer to an IEntity object
SecondaryReferenceType
Type of mate as defined by swMateReferenceType_e for SecondaryReferenceEntity
SecondaryReferenceAlignment
Type of alignment as defined by swMateReferenceAlignment_e for SecondaryReferenceEntity
TertiaryReferenceEntity
Tertiary mate reference entity, a pointer to an IEntity object
TertiaryReferenceType
Type of mate as defined by swMateReferenceType_e for TertiaryReferenceEntity
TertiaryReferenceAlignment
Type of alignment as defined by swMateReferenceAlignment_e for TertiaryReferenceEntity

Return Value

Always True

Example

Remarks

To clear the previous references, you can pass Nothing for the primary, secondary, or tertiary reference entities.

This method applies the parameters to the actual features. After calling this method, call IModelDoc2::EditRebuild to rebuild the model, and then call IModelDocExtension::NeedsRebuild to determine if the rebuild was successful.

 

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:   Edit Method (IMateReference)
*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.