Hide Table of Contents
InsertConnectionPoint Method (IFeatureManager)

Adds a connection point based on the selected entities.

.NET Syntax

Visual Basic (Declaration) 
Function InsertConnectionPoint( _
   ByVal Type As System.Integer, _
   ByVal SubType As System.Integer, _
   ByVal ReverseDirection As System.Boolean, _
   ByVal Diameter As System.Double, _
   ByVal StubLength As System.Double, _
   ByVal MinimumStraight As System.Double, _
   ByVal EndLengthAdjustment As System.Double, _
   ByVal ConductorSplitLength As System.Double, _
   ByVal SchematicPinID As System.String, _
   ByVal CableWidth As System.Double, _
   ByVal CableThickness As System.Double, _
   ByVal SwitchPin1Position As System.Boolean, _
   ByVal SpecificationFieldName As System.String, _
   ByVal SpecificationValue As System.String _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim Type As System.Integer
Dim SubType As System.Integer
Dim ReverseDirection As System.Boolean
Dim Diameter As System.Double
Dim StubLength As System.Double
Dim MinimumStraight As System.Double
Dim EndLengthAdjustment As System.Double
Dim ConductorSplitLength As System.Double
Dim SchematicPinID As System.String
Dim CableWidth As System.Double
Dim CableThickness As System.Double
Dim SwitchPin1Position As System.Boolean
Dim SpecificationFieldName As System.String
Dim SpecificationValue As System.String
Dim value As System.Boolean
 
value = instance.InsertConnectionPoint(Type, SubType, ReverseDirection, Diameter, StubLength, MinimumStraight, EndLengthAdjustment, ConductorSplitLength, SchematicPinID, CableWidth, CableThickness, SwitchPin1Position, SpecificationFieldName, SpecificationValue)
C# 
System.bool InsertConnectionPoint( 
   System.int Type,
   System.int SubType,
   System.bool ReverseDirection,
   System.double Diameter,
   System.double StubLength,
   System.double MinimumStraight,
   System.double EndLengthAdjustment,
   System.double ConductorSplitLength,
   System.string SchematicPinID,
   System.double CableWidth,
   System.double CableThickness,
   System.bool SwitchPin1Position,
   System.string SpecificationFieldName,
   System.string SpecificationValue
)
C++/CLI 
System.bool InsertConnectionPoint( 
&   System.int Type,
&   System.int SubType,
&   System.bool ReverseDirection,
&   System.double Diameter,
&   System.double StubLength,
&   System.double MinimumStraight,
&   System.double EndLengthAdjustment,
&   System.double ConductorSplitLength,
&   System.String^ SchematicPinID,
&   System.double CableWidth,
&   System.double CableThickness,
&   System.bool SwitchPin1Position,
&   System.String^ SpecificationFieldName,
&   System.String^ SpecificationValue
) 

Parameters

Type
Route type as defined in swConnectionPointType_e
SubType
Electrical route sub-type as defined in swElectricalConnectionPointType_e
ReverseDirection
True to flip the direction in which the route exits the fitting, false to not
Diameter
Nominal diameter (for pipe, tube, and electrical conduit fittings only)
StubLength

Default stub length to extend from the connector or fitting when inserted into routes

NOTE: For ribbon cables, leave stub length at 0 or set it to a value greater than half the width of the cable to assure that folds made near the connector can be created properly.

MinimumStraight
Minimum straight length (for tubes only)
EndLengthAdjustment
End length adjustment (for tubes only)
ConductorSplitLength
Conductor split length (for electrical only)
SchematicPinID
2D schematic pin ID (for ribbon cables only)
CableWidth
Width (for ribbon cables only)
CableThickness
Cable thickness (for ribbon cables only)
SwitchPin1Position
Switch Pin1 position (for ribbon cables only)
SpecificationFieldName
Specification field name (for pipes and tubes only)
SpecificationValue
Specification value (for pipes and tubes only)

Return Value

True if the connection is inserted, false if not

Example

Remarks

This method only works when the SOLIDWORKS Routing add-in is loaded (click Tools > Add-Ins  and select SOLIDWORKS Routing). This method currently supports part documents only.

Use IModelDocExtension::SelectByID2 with:

  • Mark = 1, which can be any one of the following entities to indicate the origin of a route:
    • Circular edge
    • Circular face
    • Face or plane plus a sketch point or vertex (select the plane or face where the routing segment exits the fitting, then select the sketch point that defines the end of the adjoining route segment)
  • Mark = 2, which can be a reference axis or edge to indicate which entity to align the width of the cable (for ribbon cables only) 

See the SOLIDWORKS Help for details about connection points and routing.

 

See Also

Availability

SOLIDWORKS 2009 SP03, Revision Number 17.03


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:   InsertConnectionPoint Method (IFeatureManager)
*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) 2016 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.