-
In the Update Status frame, select the
Deactivated check box and click
OK.
-
From the Compass:
-
Click the 3D Modeling Apps and select Quality Rules Reuse.
-
Select Expert Check
and enter a check name and a comment in the
dialog box.
-
Click OK.
The Expert Check Editor appears.
-
Enter the dim statement in the
Name area to specify that the check is to be applied
to all dimensions. To do so:
-
Double-click Add new argument and enter
dim.
-
Select the
TPSDimensionAnnot type in the
Type list.
-
Copy and paste the following script in the text editor:
dim.DimensionType == "DrwDimDistance" =>
dim.Name->Search("Prefix", 0, TRUE) == 0.
-
Select the Correction tab, then from the list select
Knowledge Language. Type the following script in the
editor:
dim.Name = "Prefix" + dim.Name.
Notes:
- There is no syntax verification in the
Correction tab. To check your syntax, do
the following:
- Copy your script in a rule.
- Click Apply to check the syntax.
- Copy the script in the correction editor.
- Several options are available:
- Visual Basic Language lets you write
a correction script in VB.
- Advise Correction allows displaying a
message each time you use the correction method.
- URL opens a web browser to display
the URL link you add.
- Use the same variable name as the arguments in the
Condition tab (
dim in
our example).
-
Select the Report tab and enter the text below in the
Help Message box:
Check that all linear annotations name have the "Prefix"
prefix.
-
Click OK to add the check to the rule base, then click
Solve
to solve
the rule base.
In the tree, the check icon is red indicating that not all annotations have the right
prefix.
-
Right-click Check.xxx and select Check.xxx
object > Correct function.
In the tree, the check icon is green indicating that all annotations have the right
prefix.
|