Click or drag to resize

3.8.1 Concept

Definitions

In RAYGUIDE, there are two important terms related to pens: “pen set” and “marker pen”.

A “pen set” is simply a collection of “marker pens”. Each “marker pen” in it is identified by a natural number. There are usually several “pen sets” involved during a marking process.

A “marker pen” itself is a collection of properties that defines how a path is marked. Such properties are a mix of the settings for the laser, the scanner, the graphical display, etc.

Hierarchy of pen sets

To retrieve a marker pen, one should know which pen set it belongs to, and what identifier it has. There are several places where a pen set is defined:

  • Job element (that is markable)

  • Job element holder

  • Container

  • Container holder

  • Job

    • As normal pen set

    • As copy of preset (it is called “base pen set”)

  • Application (as presets)

The following diagram shows the hierarchical order of these placements.

Pen hierarchy
Pen Hierarchy

And based on this order, then a property value in a marker pen can be resolved.

When a marker pen is added to a pen set, all its values are implicit. The only exception to this is the “default” marker pen in the application level. This special pen has explicit values for all its properties.

Presets

At the application level, several pen sets can be stored. This would allow a job to be marked with a special behavior. For example, a user can define a pen set with values for engraving, another pen set with values for welding, another pen set for cutting, etc.

The presets can be stored in two different ways:

  1. SYSTEM. All users have access. This would be useful to standardize pen values.

  2. USER. Only the current user has access. This would be useful if the user would like to experiment using different set of values.

One of the presets can be assigned as the default pen set when a new job is created.

Job’s base pen set

When a new job is created, a default preset is copied and stored in the job. If needed, another preset can be assigned to the job to replace the default. This assigned pen set is called the base pen set for the job. The special characteristic for this pen set is that all its marker pens have explicit values for all its properties.

Resolution of a pen’s property value

When one would like to know the property value of a marker pen, the following rules apply to resolve the value:

  1. Get the pen set of the marker pen.

  2. Verify that these 2 conditions are satisfied:

    1. Is there a marker pen with the specified identifier in the pen set?

    2. Is an explicit value assigned to the specified property?

  3. Are both conditions in #2 satisfied?

    1. YES. Use explicit value.

    2. NO. Is the pen set already the job’s base pen set?

      1. YES. Use the property value from the special “default” marker pen.

      2. NO. Choose the pen set of the next higher hierarchy. Repeat step 2.

In other words, find the first explicit value when traversing up the hierarchy, and use the property value of the “default” marker pen if there is no explicit value found during the traversal to the base pen set.

Examples

The following 2 examples show how the pen's properties in a job element is resolved.

  • All implicit

    Before
    LevelLaser powerMark speedJump speedColor
    Job elementnullnullnullnull
    Jobnullnullnullnull
    Base pen set11010Black

    After
    LevelLaser powerMark speedJump speedColor
    Job element11010Black
    Jobnullnullnullnull
    Base pen set11010Black
  • Some explicit

    Before
    LevelLaser powerMark speedJump speedColor
    Job elementnullnullnullRed
    Job element holdernull20nullnull
    Job0.5nullnullnull
    Base pen set11010Black
    After
    LevelLaser powerMark speedJump speedColor
    Job element0.52010Red
    Job element holdernull20nullnull
    Job0.5nullnullnull
    Base pen set11010Black