Hide Table of Contents
GetD2AxisType Method (ILinearPatternFeatureData)

Gets the type of geometry used to determine direction 2 of this linear pattern feature.

.NET Syntax

Visual Basic (Declaration) 
Function GetD2AxisType() As System.Integer
Visual Basic (Usage) 
Dim instance As ILinearPatternFeatureData
Dim value As System.Integer
 
value = instance.GetD2AxisType()
C# 
System.int GetD2AxisType()
C++/CLI 
System.int GetD2AxisType(); 

Return Value

Geometry type used to create the linear pattern in direction 2:

  • 0 = axis or ref axis

  • 1 = edge

  • 2 = dimension

  • 3 = sketch segment

(see Remarks)

Remarks

To determine LinearAxisType, you can use a Select Case statement:

 

...

Dim d1Axis as Sldworks.RefAxis

Dim d1Dim As SldWorks.Dimension

Dim d1Edge As SldWorks.Edge

Dim d1Curve As SldWorks.Curve

Dim d1SketchSegment As SldWorks.SketchSegment

Dim d1SketchLine As SldWorks.SketchLine

Dim obj as Object

...

Select Case obj.GetD1AxisType

Case 0 'Axis

d1Axis = obj.d2Axis

' Use IRefAxis methods and properties

Case 1 'Edge

d1Edge = obj.d2Axis

d1Curve = d1Edge.GetCurve

' Use IEdge and ICurve methods and properties

Case 2 'Dimension

d1Dim = obj.d2Axis

' Use IDimension methods and properties

Case 3 'SketchSegment

d1SketchSegment = obj.d2Axis

If d1SketchSegment.GetType = SwConst.swSketchSegments_e.swSketchLINE Then

d1SketchLine = d1Sketch

' Use ISketchSegment and ISketchLine methods and properties

End If

End Select

...

 

See Accessing Selections that Define Features for additional details on using this method.

 

See Also

Availability

SolidWorks 2001 FCS, Revision Number 9.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:   GetD2AxisType Method (ILinearPatternFeatureData)
*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) 2013 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.