Skip to content

code_20_vector_line2

code_20_vector_line2

Macro primitive vector line.

Code20VectorLine2

Bases: Primitive2

Vector line macro primitive.

Source code in src\pygerber\gerberx3\parser2\macro2\primitives2\code_20_vector_line2.py
class Code20VectorLine2(Primitive2):
    """Vector line macro primitive."""

    exposure: Expression2
    width: Expression2
    start_x: Expression2
    start_y: Expression2
    end_x: Expression2
    end_y: Expression2
    rotation: Expression2

    def on_parser2_eval_statement(self, context: Parser2Context) -> None:
        """Evaluate macro to create concrete macro aperture."""
        context.hooks.macro_eval.on_code_20_vector_line(context, self)

on_parser2_eval_statement

on_parser2_eval_statement(context: Parser2Context) -> None

Evaluate macro to create concrete macro aperture.

Source code in src\pygerber\gerberx3\parser2\macro2\primitives2\code_20_vector_line2.py
def on_parser2_eval_statement(self, context: Parser2Context) -> None:
    """Evaluate macro to create concrete macro aperture."""
    context.hooks.macro_eval.on_code_20_vector_line(context, self)