İçindekiler'i Gizle

Custom Check

Use SolidWorks macros to perform custom Design Checker validations. Create a macro, then register it with the Design Checker.

Writing Macros

To create a macro, click Tools > Macro > New . The macro procedure cannot have arguments. Call SetCustomCheckResult in the Design Checker API to indicate what to show on the result page, passing one of the following values:
  • true - the check passes
  • false - the check fails
Read about Custom Check in the Design Checker API Help for information about Design Checker objects and methods.

Registering Macros

Register the macro in the Custom Checks dialog box in the Build Checks application:

Name Assign a name to the validation check.
Macro File Path Path to the file containing the macro. Click to browse to the file.
Module Name.Procedure Name Select the macro name, for example, custom_check1.main
Applicable SW Document Select the type of document to validate, one of drawings, parts, or assemblies.

Storing Macros

Custom check macros are stored with the standards file to make it easier to distribute the correct combination of standards and macros to multiple users.


  • When you save a standards file that includes a custom check, the associated macro is saved with that standards file.
  • To use an updated macro, go to the Document's Custom Check window where you added the macro. Reselect the Macro File Path and the Module Name.Procedure Name.


Bu başlık hakkında geribildirimde bulunun

SOLIDWORKS; dokümantasyonun sunumu, doğruluğu ve bütünlüğü hakkında geribildiriminizi almaktan memnuniyet duyar. Bu başlık ile ilgili yorum ve önerilerinizi, aşağıdaki formu kullanarak doğrudan dokümantasyon takımımıza yollayın. Dokümantasyon takımı teknik destek sorularına yanıt veremez. Teknik destek ile ilgili bilgiler için buraya tıklayın.

* Gerekli

 
*Email:  
Konu:   Yardım Başlıkları Hakkında Geribildirim
Sayfa:   Custom Check
*Yorum:  
*   Kişisel Bilgilerimin Dassault Systèmes tarafından kullanılacağının belirtildiği gizlilik politikasını okuduğumu ve kabul ettiğimi onaylıyorum

Yazdırma Başlığı

Yazdırılacak içeriğin kapsamını seçin:

x

Internet Explorer 7'den daha eski bir tarayıcı sürümünü kullandığınızı tespit ettik. Optimize edilmiş görünüm için tarayıcınızı Internet Explorer 7 veya daha yenisine yükseltmenizi öneririz.

 Bu mesajı bir daha asla gösterme
x

Web Yardım İçerik Sürümü: SOLIDWORKS 2012 SP05

SOLIDWORKS içindeki Web yardımını devre dışı bırakmak ve onun yerine yerel yardımı kullanmak için Yardım > SOLIDWORKS Web Yardımını Kullan öğelerine tıklayın.

Web yardımı arabirimi ve araması ile ilgili karşılaştığınız sorunları lütfen yerel destek temsilcinize bildirin. Yardım başlıkları hakkında ayrı ayrı geri bildirimde bulunmak için ilgili başlığın sayfasından "Bu başlık hakkında geribildirim" bağlantısına tıklayın.