Hide Table of Contents
AutoDimension2 Method (ISketch)

Obsolete. Superseded by ISketchManager::FullyDefineSketch.

.NET Syntax

Visual Basic (Declaration) 
Function AutoDimension2( _
   ByVal EntitiesToDimension As System.Integer, _
   ByVal HorizontalScheme As System.Integer, _
   ByVal HorizontalPlacement As System.Integer, _
   ByVal VerticalScheme As System.Integer, _
   ByVal VerticalPlacement As System.Integer _
) As System.Integer
Visual Basic (Usage) 
Dim instance As ISketch
Dim EntitiesToDimension As System.Integer
Dim HorizontalScheme As System.Integer
Dim HorizontalPlacement As System.Integer
Dim VerticalScheme As System.Integer
Dim VerticalPlacement As System.Integer
Dim value As System.Integer
 
value = instance.AutoDimension2(EntitiesToDimension, HorizontalScheme, HorizontalPlacement, VerticalScheme, VerticalPlacement)
C# 
System.int AutoDimension2( 
   System.int EntitiesToDimension,
   System.int HorizontalScheme,
   System.int HorizontalPlacement,
   System.int VerticalScheme,
   System.int VerticalPlacement
)
C++/CLI 
System.int AutoDimension2( 
&   System.int EntitiesToDimension,
&   System.int HorizontalScheme,
&   System.int HorizontalPlacement,
&   System.int VerticalScheme,
&   System.int VerticalPlacement
) 

Parameters

EntitiesToDimension

Entities to dimension as defined in swAutodimEntities_e

HorizontalScheme

Horizontal dimensioning scheme as defined in swAutodimScheme_e

HorizontalPlacement

Placement relative to the sketch as defined in swAutodimHorizontalPlacement_e

VerticalScheme

Vertical dimensioning scheme as defined in swAutodimScheme_e

VerticalPlacement

Placement relative to the sketch as defined in swAutodimVerticalPlacement_e

Return Value

swAutodimStatusSuccess if the sketch is automatically dimensioned successfully; see swAutodimStatus_e for values for reasons for possible failures

Example

Remarks

If the EntitiesToDimension argument takes the value swAutodimEntitiesSelected, then use IModelDocExtension::SelectByID2 with a mark value of swAutodimMarkEntities to select the sketch entities to dimension.

 

You can supply datums for horizontal and vertical dimensioning schemes. Select and mark a unique vertical edge, vertex, sketch point, or vertical sketch line as the datum for the horizontal dimensioning scheme, using swAutodimMarkHorizontalDatum as the mark value. Similarly, select a unique horizontal edge, vertex, sketch point, or horizontal sketch line as the datum for the vertical dimensioning scheme, using swAutodimMarkVerticalDatum as the mark value. It is an error to supply just one datum as indicated by the status value swAutodimStatus_DatumNotSupplied.

 

See Also

Availability

SolidWorks 2004 FCS, Revision Number 12.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:   AutoDimension2 Method (ISketch)
*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) 2014 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.