Hide Table of Contents
RunDesignCheck5 Method (ISWDesignCheck)

Runs the SolidWorks Design Checker using the specified standards document.

.NET Syntax

Visual Basic (Declaration) 
Function RunDesignCheck5( _
   ByVal StandardFileName As String, _
   ByVal ReportFolderName As String, _
   ByVal AddReportToDesignBinder As Boolean, _
   ByVal OverWriteReport As Boolean, _
   ByVal AutoCorrect As Boolean, _
   ByRef lReportFormat As Integer, _
   ByRef ResultSummary As String _
) As Integer
Visual Basic (Usage) 
Dim instance As ISWDesignCheck
Dim StandardFileName As String
Dim ReportFolderName As String
Dim AddReportToDesignBinder As Boolean
Dim OverWriteReport As Boolean
Dim AutoCorrect As Boolean
Dim lReportFormat As Integer
Dim ResultSummary As String
Dim value As Integer
 
value = instance.RunDesignCheck5(StandardFileName, ReportFolderName, AddReportToDesignBinder, OverWriteReport, AutoCorrect, lReportFormat, ResultSummary)
C# 
int RunDesignCheck5( 
   string StandardFileName,
   string ReportFolderName,
   bool AddReportToDesignBinder,
   bool OverWriteReport,
   bool AutoCorrect,
   out int lReportFormat,
   out string ResultSummary
)
C++/CLI 
int RunDesignCheck5( 
&   String^ StandardFileName,
&   String^ ReportFolderName,
&   bool AddReportToDesignBinder,
&   bool OverWriteReport,
&   bool AutoCorrect,
&   [Out] int lReportFormat,
&   [Out] String^ ResultSummary
) 

Parameters

StandardFileName
Path and filename of SolidWorks Design Checker standards document
ReportFolderName

Path and folder name for report

AddReportToDesignBinder
True to add the report to the Design Binder, false to not (see Remarks)
OverWriteReport
True to overwrite any existing report of the same name in the Design Binder, false to not
AutoCorrect
True to autocorrect all failures discovered by Design Checker, false to not (see Remarks)
lReportFormat

0=XML format, 1=Microsoft Word format (see Remarks)

ResultSummary
Failure counts

Return Value

Error code as defined in dsgnchkError_e

Example

Remarks

If lReportFormat is set to... Then ReportFolderName directory contains... and lReportFormat returns...

0

SWDCReport.xml and SWDCReport.xsl

0

1

SWDCReport.doc (if Microsoft Word is installed)

SWDCReport.xml and SWDCReport.xsl (if Microsoft Word is not installed)

1

 

0

If AutoCorrect is set to... Then ResultSummary contains...

False

Failure counts delimited by the at symbol (@):

Critical#@High#@Medium#@Low#

True

Pre- and post-correction failure counts delimited by the at symbol (@):

Critical#(pre)@High#(pre)@Medium#(pre)@Low#(pre)@Critical#(post)@High#(post)@Medium#(post)@Low#(post)

Only failures that were found after the correction cycle display in the report.

If AddReportToDesignBinder is set to true, then the SolidWorks FeatureManager Design Binder contains <ReportFolderName>.drp.

 

See Also

Availability

SolidWorks 2011 FCS, Revision Number 19.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:   RunDesignCheck5 Method (ISWDesignCheck)
*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) 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.