[closed] How to ignore line numbering?

Discussion of new Synchronize It! version.
Post Reply
Goodwill

[closed] How to ignore line numbering?

Post by Goodwill »

Hi all,

I'm trying to compare two CNC-files.
Those files have line numbering like following:

N2 G01 X5.0 Y6.0 F500
N4 X20.3 Y30.6
N6 Z50.
...
N1652 G00 X50. Y60.
N1654 Z100.

GV_PBTD_TOL=5
GV_PBTD=1


But NOT ALL LINES are numbered.
And the lines of the different files have different numbering, so we want to ignore the line numbering completely during comparisatuion.

Can anyone tell if it is possible to apply a rule, so the line numbering is ignored.
And also how to do it.

Regards

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Post by grigsoft »

Did I understand right that this "N2" is a line number you are refering to?
In this case you can ignore it by adding following rule in Options>Comparison>UseRegular Expressions

Search:^N\d+\s+
Replace:
Use only once: ON
Action:Replace

Guest

Post by Guest »

Indeed, you did understand it right.

And it does the trick when I drop the last "+ ".

So when I use

Search:^N\d+\s

I works well.

Thanks a lot.

Post Reply