Hide Table of Contents
D1Axis Property (ILinearPatternFeatureData)

Gets or sets the axis used to determine direction 1 for this linear pattern feature.

.NET Syntax

Visual Basic (Declaration) 
Property D1Axis As System.Object
Visual Basic (Usage) 
Dim instance As ILinearPatternFeatureData
Dim value As System.Object
instance.D1Axis = value
value = instance.D1Axis
System.object D1Axis {get; set;}
property System.Object^ D1Axis {
   System.Object^ get();
   void set ( &   System.Object^ value);

Property Value

Pointer to the object that determines the axis


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

' Use IRefAxis methods and properties

Case 1 'Edge

d1Edge = obj.d1Axis

d1Curve = d1Edge.GetCurve

' Use IEdge and ICurve methods and properties

Case 2 'Dimension

d1Dim = obj.d1Axis

' Use IDimension methods and properties

Case 3 'SketchSegment

d1SketchSegment = obj.d1Axis

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


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

Subject:   Feedback on Help Topics
Page:   D1Axis Property (ILinearPatternFeatureData)
*   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:


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

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.