> CreateLinearSketchStepAndRepeat Method (ISketchManager)
Welcome
Getting Started
SolidWorks API Help
FeatureWorks API Help
SolidWorks Document Manager API Help
eDrawings API Help
SolidWorks Routing API Help
SolidWorks Simulation API Help
SolidWorks Utilities API Help
SolidWorks Workgroup PDM API Help
Hide Table of Contents Show Table of Contents
CreateLinearSketchStepAndRepeat Method (ISketchManager)

Creates a linear sketch pattern.

.NET Syntax

Visual Basic (Declaration) 
Function CreateLinearSketchStepAndRepeat( _
   ByVal NumX As Integer, _
   ByVal NumY As Integer, _
   ByVal SpacingX As Double, _
   ByVal SpacingY As Double, _
   ByVal AngleX As Double, _
   ByVal AngleY As Double, _
   ByVal DeleteInstances As String, _
   ByVal XSpacingDim As Boolean, _
   ByVal YSpacingDim As Boolean, _
   ByVal AngleDim As Boolean, _
   ByVal CreateNumOfInstancesDimInXDir As Boolean, _
   ByVal CreateNumOfInstancesDimInYDir As Boolean _
) As Boolean
Visual Basic (Usage) 
Dim instance As ISketchManager
Dim NumX As Integer
Dim NumY As Integer
Dim SpacingX As Double
Dim SpacingY As Double
Dim AngleX As Double
Dim AngleY As Double
Dim DeleteInstances As String
Dim XSpacingDim As Boolean
Dim YSpacingDim As Boolean
Dim AngleDim As Boolean
Dim CreateNumOfInstancesDimInXDir As Boolean
Dim CreateNumOfInstancesDimInYDir As Boolean
Dim value As Boolean
 
value = instance.CreateLinearSketchStepAndRepeat(NumX, NumY, SpacingX, SpacingY, AngleX, AngleY, DeleteInstances, XSpacingDim, YSpacingDim, AngleDim, CreateNumOfInstancesDimInXDir, CreateNumOfInstancesDimInYDir)
C# 
bool CreateLinearSketchStepAndRepeat( 
   int NumX,
   int NumY,
   double SpacingX,
   double SpacingY,
   double AngleX,
   double AngleY,
   string DeleteInstances,
   bool XSpacingDim,
   bool YSpacingDim,
   bool AngleDim,
   bool CreateNumOfInstancesDimInXDir,
   bool CreateNumOfInstancesDimInYDir
)
C++/CLI 
bool CreateLinearSketchStepAndRepeat( 
&   int NumX,
&   int NumY,
&   double SpacingX,
&   double SpacingY,
&   double AngleX,
&   double AngleY,
&   String^ DeleteInstances,
&   bool XSpacingDim,
&   bool YSpacingDim,
&   bool AngleDim,
&   bool CreateNumOfInstancesDimInXDir,
&   bool CreateNumOfInstancesDimInYDir
) 

Parameters

NumX

Total number of instances along the x axis, including the seed

NumY
Total number of instances along the y axis, including the seed
SpacingX
Spacing between instances along the x axis
SpacingY
Spacing between instances along the y axis
AngleX

Angle for direction 1 relative to the x axis

AngleY

Angle for direction 2 relative to the y axis

DeleteInstances

Number of instances to delete, passed as a string in the format: "(a) (b) (c) "

XSpacingDim
True to display the spacing between instances dimension along the x axis in the graphics area, false to not
YSpacingDim
True to display the spacing between instances dimension along the y axis in the graphics area, false to not
AngleDim
True to display the angle dimension between axes in the graphics area, false to not
CreateNumOfInstancesDimInXDir
True to display the number of instances in the x direction dimension in the graphics area, false to not
CreateNumOfInstancesDimInYDir
True to display the number of instances in the y direction dimension in the graphics area, false to not

Return Value

True if the linear sketch pattern is created, false if not

Example

Remarks

The spacing instances, angle, and number of instances dimensions displayed in the graphics area can be modified by interactive users.
 

See Also

Availability

SolidWorks 2010 FCS, Revision Number 18.0


Related SolidWorks Forum Content

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:   CreateLinearSketchStepAndRepeat Method (ISketchManager)
*Comment:  
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) 2012 SP05

The search functionality within the web help is in a beta test phase and you may experience periodic delays or interruptions in its performance. These are the normal and ordinary features of a beta test and shall not under any circumstances give rise to any liability on the part of DS SolidWorks or its licensors. The topics within the Web-based help are not beta topics; they document API Help (English only) 2012 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.