Hide Table of Contents
ResetUntitledCount Method (ISldWorks)

Resets the index of untitled documents.

.NET Syntax

Visual Basic (Declaration) 
Function ResetUntitledCount( _
   ByVal PartValue As System.Integer, _
   ByVal AssemValue As System.Integer, _
   ByVal DrawingValue As System.Integer _
) As System.Integer
Visual Basic (Usage) 
Dim instance As ISldWorks
Dim PartValue As System.Integer
Dim AssemValue As System.Integer
Dim DrawingValue As System.Integer
Dim value As System.Integer
 
value = instance.ResetUntitledCount(PartValue, AssemValue, DrawingValue)
C# 
System.int ResetUntitledCount( 
   System.int PartValue,
   System.int AssemValue,
   System.int DrawingValue
)
C++/CLI 
System.int ResetUntitledCount( 
&   System.int PartValue,
&   System.int AssemValue,
&   System.int DrawingValue
) 

Parameters

PartValue
Starting index for part documents
AssemValue
Starting index for assembly documents
DrawingValue
Starting index for drawing documents

Return Value

Total number of successful resets

Example

Remarks

Use this method to reset untitled document indexes so that playbacks of the macro recorder increment untitled documents in a reproducible fashion.

For example, if the first playback of a macro creates Part1 and Part2, then the second playback may fail because it creates Part3 and Part4 instead of Part1 and Part2. 

To ensure reproducible results, call ISldWorks::ResetUntitledCount at the beginning or end of a macro program.

 

See Also

Availability

SOLIDWORKS 2009 SP1, Revision Number 17.1


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:   ResetUntitledCount Method (ISldWorks)
*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) 2015 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.