Hide Table of Contents
D2Axis Property (ILinearPatternFeatureData)

Gets or sets the axis used to determine direction 2 of this linear pattern feature.

.NET Syntax

Visual Basic (Declaration) 
Property D2Axis As System.Object
Visual Basic (Usage) 
Dim instance As ILinearPatternFeatureData
Dim value As System.Object
 
instance.D2Axis = value
 
value = instance.D2Axis
C# 
System.object D2Axis {get; set;}
C++/CLI 
property System.Object^ D2Axis {
   System.Object^ get();
   void set ( &   System.Object^ value);
}

Property Value

Pointer to the object that determines the axis

Remarks

For example:

 

...

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 property.

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:   D2Axis Property (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) 2018 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.