Hi Patrick,
Normally I first measure and layout the wales, this as these determine the finall look of the ship and are the most important planks on the sides. If you have sketched out the wales then from the wales you can determine the position of the gun ports because you then have the correct reference height to measure from. Then you can position the gunport correctly between the bulkheads.