Hide Table of Contents
CreateFlattenRoute Method (IRouteManager)

Creates a flattened route and optionally its drawing.

.NET Syntax

Visual Basic (Declaration) 
Function CreateFlattenRoute( _
   ByVal flattenType As Integer, _
   ByVal connectorOption As Integer, _
   ByVal formboardWidth As Double, _
   ByVal formboardHeight As Double, _
   ByVal segmentOrientation As Integer, _
   ByVal drawingOption As Boolean, _
   ByVal sheetFormatTemplate As String, _
   ByVal elecBOMTemplate As String, _
   ByVal cutListTemplate As String, _
   ByVal connectorTableTemplate As String, _
   ByVal autoBalloons As Boolean _
) As Integer
Visual Basic (Usage) 
Dim instance As IRouteManager
Dim flattenType As Integer
Dim connectorOption As Integer
Dim formboardWidth As Double
Dim formboardHeight As Double
Dim segmentOrientation As Integer
Dim drawingOption As Boolean
Dim sheetFormatTemplate As String
Dim elecBOMTemplate As String
Dim cutListTemplate As String
Dim connectorTableTemplate As String
Dim autoBalloons As Boolean
Dim value As Integer
 
value = instance.CreateFlattenRoute(flattenType, connectorOption, formboardWidth, formboardHeight, segmentOrientation, drawingOption, sheetFormatTemplate, elecBOMTemplate, cutListTemplate, connectorTableTemplate, autoBalloons)
C# 
int CreateFlattenRoute( 
   int flattenType,
   int connectorOption,
   double formboardWidth,
   double formboardHeight,
   int segmentOrientation,
   bool drawingOption,
   string sheetFormatTemplate,
   string elecBOMTemplate,
   string cutListTemplate,
   string connectorTableTemplate,
   bool autoBalloons
)
C++/CLI 
int CreateFlattenRoute( 
&   int flattenType,
&   int connectorOption,
&   double formboardWidth,
&   double formboardHeight,
&   int segmentOrientation,
&   bool drawingOption,
&   String^ sheetFormatTemplate,
&   String^ elecBOMTemplate,
&   String^ cutListTemplate,
&   String^ connectorTableTemplate,
&   bool autoBalloons
) 

Parameters

flattenType

Type of routing drawing as defined in swRoutingFlattenTypes_e

connectorOption
Type of connector to display as defined in swRoutingFlattenConnectorOptions_e
formboardWidth

Width of the formboard; only applies if flattenType = 2 (manufacture type)

formboardHeight
Height of the formboard; only applies if flattenType = 2 (manufacture type)
segmentOrientation

Segment orientation as defined in swRoutingFlattenSegmentOrientation_e; only applies if flattenType = 2 (manufacture type)

drawingOption
True to create a drawing of the flattened route, false to not
sheetFormatTemplate
Full pathname of drawing sheet template to use to create the drawing; only applies if drawingOption = true 
elecBOMTemplate

Full pathname of electrical BOM table template to use to create the drawing; only applies if drawingOption = true

cutListTemplate

Full pathname of electrical cut list table template to use to create the drawing; only applies if drawingOption = true

connectorTableTemplate

Full pathname of electrical connector table template to use to create the drawing; only applies if drawingOption = true

autoBalloons
True to insert balloons, false to not; only applies if drawingOption = true

Return Value

Error code as defined in swFlattenRouteErrorType_e

Example

Remarks

Before calling this API, select the assembly that contains the route you want to flatten.
 

See Also

Availability

SolidWorks 2011 FCS, Revision Number 19.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:   CreateFlattenRoute Method (IRouteManager)
*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) 2011 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.