Hide Table of Contents
CreatePointToPointAutoRoute Method (IAutoRoute)

Connects two selected entities on a route.

.NET Syntax

Visual Basic (Declaration) 
Function CreatePointToPointAutoRoute( _
   ByVal conversionMode As System.Integer _
) As System.Integer
Visual Basic (Usage) 
Dim instance As IAutoRoute
Dim conversionMode As System.Integer
Dim value As System.Integer
 
value = instance.CreatePointToPointAutoRoute(conversionMode)
C# 
System.int CreatePointToPointAutoRoute( 
   System.int conversionMode
)
C++/CLI 
System.int CreatePointToPointAutoRoute( 
&   System.int conversionMode
) 

Parameters

conversionMode
Route style as defined in swPointToPointAutoRouteConversionMode_e

Return Value

Error code as defined in swPointToPointAutoRouteErrorType_e

Example

Remarks

Call this method to automatically connect one of the following in a route:

  • two points
  • a point and a clip axis
  • a point and a line

Before calling this method:

  1. In the FeatureManager design tree, select the assembly that contains the route to which to add connections.
  2. Call IRouteManager::EditRoute.
  3. Call IModelDocExtension::SelectByID2 twice, specifying type SKETCHPOINT to select two points on the route.

After calling this method:

  1. Call IRouteManager::ExitRoute.
  2. Call IAssemblyDoc::EditAssembly.
 

See Also

Availability

SOLIDWORKS Routing 2011 FCS


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:   CreatePointToPointAutoRoute Method (IAutoRoute)
*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) 2015 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.