Hide Table of Contents
ICreateRouteThroughSketchEntities Method (IAutoRoute)

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

.NET Syntax

Visual Basic (Declaration) 
Function ICreateRouteThroughSketchEntities( _
   ByVal conversionMode As System.Integer, _
   ByVal autoTangencyMode As System.Integer, _
   ByVal Count As System.Integer, _
   ByRef EntityTypes As System.Integer, _
   ByRef EntityIDs As System.Integer _
) As System.Integer
Visual Basic (Usage) 
Dim instance As IAutoRoute
Dim conversionMode As System.Integer
Dim autoTangencyMode As System.Integer
Dim Count As System.Integer
Dim EntityTypes As System.Integer
Dim EntityIDs As System.Integer
Dim value As System.Integer
 
value = instance.ICreateRouteThroughSketchEntities(conversionMode, autoTangencyMode, Count, EntityTypes, EntityIDs)
C# 
System.int ICreateRouteThroughSketchEntities( 
   System.int conversionMode,
   System.int autoTangencyMode,
   System.int Count,
   ref System.int EntityTypes,
   ref System.int EntityIDs
)
C++/CLI 
System.int ICreateRouteThroughSketchEntities( 
&   System.int conversionMode,
&   System.int autoTangencyMode,
&   System.int Count,
&   System.int% EntityTypes,
&   System.int% EntityIDs
) 

Parameters

conversionMode
Type of route as defined in swAutoRouteConversionMode_e
autoTangencyMode
Tangency mode as defined in swAutoRouteAutoTangencyMode_e
Count
Number of sketch entities
EntityTypes
  • in-process, unmanaged C++: Pointer to an array of integers representing the types of sketch entities to use for the route as defined in swAutoRouteSketchEntitiesTypes_e (see Remarks)
  • VBA, VB.NET, C#, and C++/CLI: Not supported

See In-process Methods for details about this type of method.

EntityIDs
  • in-process, unmanaged C++: Pointer to an array of integers representing the IDs of the sketch entities in EntityTypes (see Remarks)
  • VBA, VB.NET, C#, and C++/CLI: Not supported

See In-process Methods for details about this type of method.

Return Value

Error code as defined in swAutoRouteErrorType_e

Remarks

The EntityTypes and EntityIDs arrays must be the same size. Specify the size of the arrays for Count.

The EntityIDs determine the path of the route. To get EntityIDs values, use ISketchPoint::IGetID for sketch points and ISketchSegment::IGetID 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:   ICreateRouteThroughSketchEntities 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.