I've never actually done this, but read somewhere that you clamp the barrel in a vise, using a level on one of the octagon flats to be sure that the flat is clamed in the vise on the level. Then using a flat file with a level on the backside of it, to be sure that it is held level, pull it diagonally down the round portion of the barrel, which should strike a straight line down the top center, or bottom center, if you clamed it upside down. Of course, the line only needs to be long enough to mark the portion of the barrel that you need marked. Again, I've not actually tried this, and may not have told it exactly correct, but you get the idea. Using the level to index the barrel flat and on the back of the level to strike the line on the rounded part ensures they are in the same plane (theoretically). I hope this will help, and probably some real gunsmith will chime in soon to set the record straight.