Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

COMPARISON Statement

  • Last UpdatedOct 24, 2023
  • 2 minute read

When defining the scope it may be convenient to pick as big portions of the model as possible in one "go", for example, one or several complete blocks. The default situation is then that when comparing parts with each other for equality comparison is made within the whole scope.

Now suppose that you want to set position numbers within a block but that the position numbers should be individual within, say, each panel, that means, parts should only be compared to other parts in the same panel. If comparison should always be done within the complete scope (as by default) you would have to define individual scopes for all the many panels within the block.

In this situation the COMPARISON statement can be used to simplify the work. It allows you to specify the level on which comparison should be made within any selected scope.

In the example above you may define the scope by the block but specify that comparison should be made (for instance) on panel level.

Syntax

COMPARISON,

/COMP_ASS_FIRST
/COMP_ASS_ALL
/COMP_BLOCK
/COMP_PANEL
/COMP_SCOPE
/COMP_NONE
/COMP_ASS_LEVEL=<num>

/COMP_ASS_FIRST

Compare parts that are referenced directly on the first level from any assembly with each other.

/COMP_ASS_ALL

Compare parts that are referenced on all levels from any assembly with each other.

/COMP_BLOCK

Compare all parts belonging to a certain block with each other.

/COMP_PANEL

Compare all parts that belong to a certain panel with each other.

/COMP_SCOPE

Compare all parts within the entire scope with each other. This is default if no comparison statement is given.

/COMP_NONE

Treat all parts individually. This will result in that all parts will get individual position numbers.

/COMP_ASS_LEVEL

This is a refinement between COMP_ASS_FIRST and COMP_ASS_ALL where it is possible to specify a relative assembly level. A negative (or zero) value of <num> specifies ABS(<num>) assembly levels above the lowest assembly level, a positive the absolute number of assembly levels counting from the main assembly.

Please note that the chain of assembly levels is not compared otherwise, only the number of specified levels counting from the top or from the bottom.

All parts matching the assembly mask will be compared to each other.

Related Links
TitleResults for “How to create a CRG?”Also Available in