Modelcheck

The MODELCHECK command can be used to detect duplicate blocks, single blocks, or intersecting lines. It is usually employed as a control tool in Lahyer constructions and is not part of the standard SCAD Re-Event, but an optional module.

MODELCHECK can find errors such as double use of a rosette hole, braces going through a plate, missing connections to a post with a pin, etc. At the location of the error, a block is loaded, usually an arrow or something similar. Its operation is based on the rules in the settings file. This is a CSV file with the following columns:

  • Name: The name of the rule. This column is not necessary and is intended for the user to distinguish the rules.
  • Block Check: The name of the block that needs to be checked for errors, unless the rule is set to Line, then it is the color of the line that needs to be checked. The block is usually just a point, as it only serves to indicate the position. Therefore, the library parts may need to be adjusted by adding these blocks.
  • Block Error: The name of the block that is inserted at the location of the found error (the arrows in the images). The block must be in a support path, for example, c:\scad-rev\support.
  • Check Rule: There are 3 rules to choose from:
    • Double: Blocks that are in the same place are marked as an error.
    • Single: Blocks that stand alone are marked as an error.
    • Line: Lines that intersect are marked as an error at the point of intersection. Therefore, the blocks to be checked contain lines. This is often already the case for a brace or post, but for example, in floor plates, lines must also be present where the brace may intersect.
  • Note: The number of errors per rule is displayed after the command with this text.

There is another file that checks whether objects may be mirrored. Click here for the Mirrorcheck

Checking intersecting lines can become slow when many lines need to be checked.

The rules in the image. First Single, nothing is on the right post with a pin:

modelcheck%20single%20white

Then Double, here two braces are in the same hole:

modelcheck%20double%20white

Finally Line, the brace goes through the plate.

modelcheck%20line

Example of a CSV file with multiple rules:

Modelcheck%20Settings%20CSV

With MODELCHECKSETTINGS, this file can then be chosen. The rules can also be adjusted afterwards.

modelchecksettings

The blocks from the Block Error rule are generally in c:\scad-rev\support, as this directory is always searched.

Mirrorcheck

Blocks that are mirrored around a certain axis, but should not be, can also be found with modelcheck. For this, a CSV file is needed with block names, the axis(es) over which they should not be mirrored, and the block that is inserted when an error is found. This file must be chosen in the MODELCHECKSETTINGS menu.



For the axes, X, Y, Z can be filled in or any combination thereof. A block is considered mirrored when the scaling over the entered axis(es) is negative.