Hide Table of Contents
CreateRouteThroughSketchEntities Method (IAutoRoute)

Creates a route using the specified sketch entity types and IDs.

.NET Syntax

Visual Basic (Declaration) 
Function CreateRouteThroughSketchEntities( _
   ByVal conversionMode As System.Integer, _
   ByVal autoTangencyMode As System.Integer, _
   ByVal EntityTypes As System.Object, _
   ByVal EntityIDs As System.Object _
) As System.Integer
Visual Basic (Usage) 
Dim instance As IAutoRoute
Dim conversionMode As System.Integer
Dim autoTangencyMode As System.Integer
Dim EntityTypes As System.Object
Dim EntityIDs As System.Object
Dim value As System.Integer
 
value = instance.CreateRouteThroughSketchEntities(conversionMode, autoTangencyMode, EntityTypes, EntityIDs)
C# 
System.int CreateRouteThroughSketchEntities( 
   System.int conversionMode,
   System.int autoTangencyMode,
   System.object EntityTypes,
   System.object EntityIDs
)
C++/CLI 
System.int CreateRouteThroughSketchEntities( 
&   System.int conversionMode,
&   System.int autoTangencyMode,
&   System.Object^ EntityTypes,
&   System.Object^ EntityIDs
) 

Parameters

conversionMode
Type of route as defined in swAutoRouteConversionMode_e
autoTangencyMode
Tangency mode as defined in swAutoRouteAutoTangencyMode_e
EntityTypes

Array of the types of sketch entities to use for the route as defined in swAutoRouteSketchEntitiesTypes_e (see Remarks)

EntityIDs
Array of IDs of the sketch entities in EntityTypes (see Remarks)

Return Value

Error code as defined in swAutoRouteErrorType_e

Example

Remarks

The EntityTypes and EntityIDs arrays must be the same size.

The EntityIDs determine the path of the route. To get EntityIDs values, use ISketchPoint::GetID for sketch points and ISketchSegment::GetID for sketch lines, sketch arcs, and sketch spline.

If a segment already exists between two sketch entities, then that segment is used as part of the newly created route path.

Before calling this method:

  1. Select a route feature in an assembly.
  2. Call IRouteManager::EditRoute.
  3. Populate the EntityTypes and EntityIDs arrays with the types and IDs of the sketch entities.
 

See Also

Availability

SolidWorks Routing 2014 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:   CreateRouteThroughSketchEntities 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) 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.