SpecChecker - How can I change element line style in multiple files?

SpecChecker - How can I change element line style in multiple files?


This article walks you through using SpecChecker with a pre-created rules file to correct the line style of selected elements to one that you choose across multiple design file models.

Attached to this article is a RUL file that SpecChecker uses to check your design file elements. A RUL file contains rules that SpecChecker uses to report or correct element violations. The RUL file we’re using for this process contains rules that correct elements.
Warning: This will make changes to your files. Ensure you have valid backups before proceeding.

  1. Save the provided Correct-linestyle.rul file to a convenient location.
  2. Open the RUL file with Notepad.
    a. Locate the word WRONG_STYLE_NAME. Replace it with the number or name of the currently incorrect line style you want to change. You can add multiple styles here such as 4,5,6 or 4, Border.
    b. Locate the word CORRECT_STYLE_NAME. Replace it with the new line style number or name. Keep the quotes surrounding the value. For example, “Phantom”.
    c. The numbers following TYPE = identify the element types this rule will process. Remove any numbers for element types you do not want to change.
    Here is each element and its corresponding number:

Line

3

Line string

4

Shape

6

Curve

11

Complex chain header

12

Complex shape header

14

Ellipse

15

Arc

16

B-spline curve header

27

d. Save your changes and close Notepad.

  1. Load SpecChecker from the Axiom ribbon/menu.

  1. Go to Settings | Restore Factory Defaults…, and press <Yes> when prompted.
    This is a precaution to ensure there are no other features or settings active that might impact your result.
  2. Use the Models: menu to select which models to process per design file.

  1. Next to the Files: field, press the <Edit List...> button.
  2. Either drag and drop your files into the Choose Files to Process dialog box or navigate to and select your files for processing. Press <OK> when finished.

  1. Next to the Rules File: field, press <Select...>, then navigate to and select the Correct-linestyle.rul file saved previously.
  2. Next to the Report File: field, press <Select…>, then navigate to a convenient location, enter a name for your report and press <Select>.
  3. Press <Start> to process your files.

When the process is complete, all specified elements in the models processed will have your new line style assigned.