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 System.String, _
   ByVal ReportFolderName As System.String, _
   ByVal AddReportToDesignBinder As System.Boolean, _
   ByVal OverWriteReport As System.Boolean, _
   ByVal AutoCorrect As System.Boolean, _
   ByRef lReportFormat As System.Integer, _
   ByRef ResultSummary As System.String _
) As System.Integer
Visual Basic (Usage) 
Dim instance As ISWDesignCheck
Dim StandardFileName As System.String
Dim ReportFolderName As System.String
Dim AddReportToDesignBinder As System.Boolean
Dim OverWriteReport As System.Boolean
Dim AutoCorrect As System.Boolean
Dim lReportFormat As System.Integer
Dim ResultSummary As System.String
Dim value As System.Integer
 
value = instance.RunDesignCheck5(StandardFileName, ReportFolderName, AddReportToDesignBinder, OverWriteReport, AutoCorrect, lReportFormat, ResultSummary)
C# 
System.int RunDesignCheck5( 
   System.string StandardFileName,
   System.string ReportFolderName,
   System.bool AddReportToDesignBinder,
   System.bool OverWriteReport,
   System.bool AutoCorrect,
   out System.int lReportFormat,
   out System.string ResultSummary
)
C++/CLI 
System.int RunDesignCheck5( 
&   System.String^ StandardFileName,
&   System.String^ ReportFolderName,
&   System.bool AddReportToDesignBinder,
&   System.bool OverWriteReport,
&   System.bool AutoCorrect,
&   [Out] System.int lReportFormat,
&   [Out] System.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) 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.