Most (don't bet on all) spoke calculators yield a spoke length where the spoke ends at the ERD, or top of the nipple head, or 1mm shy of that.
As for measuring ERD, I prefer to measure down from the rim's outside edge, then subtract 2x ( radius v. diameter). You can measure with or without the nipple, just be consistent.
__________________
FB
Chain-L site
An ounce of diagnosis is worth a pound of cure.
Just because I'm tired of arguing, doesn't mean you're right.
“One accurate measurement is worth a thousand expert opinions” - Adm Grace Murray Hopper - USN
WARNING, I'm from New York. Thin skinned people should maintain safe distance.