Hide Table of Contents
Edit Method (IMateReference)

Lets you edit the selected mate reference.

.NET Syntax

Visual Basic (Declaration) 
Function Edit( _
   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 System.Boolean
Visual Basic (Usage) 
Dim instance As IMateReference
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 System.Boolean
 
value = instance.Edit(BstrMateReferenceName, PrimaryReferenceEntity, PrimaryReferenceType, PrimaryReferenceAlignment, SecondaryReferenceEntity, SecondaryReferenceType, SecondaryReferenceAlignment, TertiaryReferenceEntity, TertiaryReferenceType, TertiaryReferenceAlignment)
C# 
System.bool Edit( 
   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 
System.bool Edit( 
&   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 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) 2014 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.