Hide Table of Contents
EditDistanceMate Method (IAssemblyDoc)

Edits a distance mate.

.NET Syntax

Visual Basic (Declaration) 
Sub EditDistanceMate( _
   ByVal AlignFromEnum As System.Integer, _
   ByVal Flip As System.Boolean, _
   ByVal Distance As System.Double, _
   ByVal DistanceAbsUpperLimit As System.Double, _
   ByVal DistanceAbsLowerLimit As System.Double, _
   ByVal FirstArcCondition As System.Integer, _
   ByVal SecondArcCondition As System.Integer, _
   ByRef ErrorStatus As System.Integer _
) 
Visual Basic (Usage) 
Dim instance As IAssemblyDoc
Dim AlignFromEnum As System.Integer
Dim Flip As System.Boolean
Dim Distance As System.Double
Dim DistanceAbsUpperLimit As System.Double
Dim DistanceAbsLowerLimit As System.Double
Dim FirstArcCondition As System.Integer
Dim SecondArcCondition As System.Integer
Dim ErrorStatus As System.Integer
 
instance.EditDistanceMate(AlignFromEnum, Flip, Distance, DistanceAbsUpperLimit, DistanceAbsLowerLimit, FirstArcCondition, SecondArcCondition, ErrorStatus)
C# 
void EditDistanceMate( 
   System.int AlignFromEnum,
   System.bool Flip,
   System.double Distance,
   System.double DistanceAbsUpperLimit,
   System.double DistanceAbsLowerLimit,
   System.int FirstArcCondition,
   System.int SecondArcCondition,
   out System.int ErrorStatus
)
C++/CLI 
void EditDistanceMate( 
&   System.int AlignFromEnum,
&   System.bool Flip,
&   System.double Distance,
&   System.double DistanceAbsUpperLimit,
&   System.double DistanceAbsLowerLimit,
&   System.int FirstArcCondition,
&   System.int SecondArcCondition,
&   [Out] System.int ErrorStatus
) 

Parameters

AlignFromEnum
Type of alignment as defined in swMateAlign_e
Flip
True to flip the mate entities, false to not (see Remarks)
Distance
Distance value (see Remarks)
DistanceAbsUpperLimit
Absolute maximum distance value (see Remarks)
DistanceAbsLowerLimit
Absolute minimum distance value (see Remarks)
FirstArcCondition
First arc condition as defined in swDistanceMateArcConditions_e; valid only for cylindrical distance mates (see Remarks)
SecondArcCondition
Second arc condition as defined in swDistanceMateArcConditions_e; valid only for cylindrical distance mates (see Remarks)
ErrorStatus
Success or error as defined by swAddMateError_e

Example

Remarks

Select these entities before calling this method:

If the mate is applied to the closest position that meets the mate condition specified by Distance, then setting Flip to true moves the components to the other possible mate position.

 

Call IModelDoc2::EditRebuild3 after calling this method.

 

See IAssemblyDoc::AddDistanceMate Remarks.

 

See Also

Availability

SOLIDWORKS 2018 FCS, Revision Number 26.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:   EditDistanceMate Method (IAssemblyDoc)
*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.