# Offset Formula

Offset Formula for Guitar Frets
Hi I'm trying to model a guitar neck the distance between each fret is
controlled
by a formula.
Fret 1 = Scale_Length/17.817 Distance from Nut to First fret
Fret 2 = (Scale_Length - Fret 1)/17.817 Distance from First to second
Fret 3 = (Scale_Length - Fret 2)/17.817 Distance from second to third
Fret 4 = (Scale_Length - Fret 3)/17.817 Distance from third to fourth
Etc
The scale length is the distance between the Nut (Top of guitar) to
the Bridge, which does
vary from make to make.
I would like to input the the Scale length & Number of Frets
and have proe handle the offsets based on the above.
I hope I make myself clear?
By the way Proe 2001.
Thanks
Geoff
: Offset Formula for Guitar Frets : : : : Hi I'm trying to model a guitar neck the distance between each fret is : controlled : by a formula. : : Fret 1 = Scale_Length/17.817 Distance from Nut to First fret : : Fret 2 = (Scale_Length - Fret 1)/17.817 Distance from First to second : : Fret 3 = (Scale_Length - Fret 2)/17.817 Distance from second to third : : Fret 4 = (Scale_Length - Fret 3)/17.817 Distance from third to fourth : : Etc : : The scale length is the distance between the Nut (Top of guitar) to : the Bridge, which does : vary from make to make. : : : As you can see the distance between each thread gradually decreases. : : I would like to input the the Scale length & Number of Frets : and have proe handle the offsets based on the above. : Geoff, have you done much work with relations? You know, 'Tools>Relations' where you take formulas such as you've created, and govern dimensions with them. So, for example, if the distance of the first fret is governed by a dimension whose symbol is d5, you'd first create a parameter called FRET_1 and set its value to equal d5 then you'd put your formula in a relation. Of course you'd have to make other parameters to input the values for such things as SCALE_LENGTH and you might put your 17.817 constant in a real number parameter, as well. If you wanted to get really fancy, this could all be put in Pro/PROGRAM ('Tools>Program') which can also take prompted input to set the value of such parameters as SCALE_LENGTH. There's a few different ways to do this but there's a lot of helpful info in the Help files under relations, parameters and program.
David Janes
Hey thanks David I like the look of Pro/PROGRAM, I use VBA quite a bit and have wrote the code for what I want to do in VBA
Scale_Length = Me.Scale_Len.Value ' Enter scale length NOoffrets_val = Me.NOoffrets.Value 'Enter number of frets
For i = 1 To NOoffrets_val
Me.Dist = Scale_Len / 17.817
Debug.Print Me.Dist
Scale_Len.Value = Scale_Len - Me.Dist
Next i
Hopefully not to difficult to convert to Pro/PROGRAM.

#### Site Timeline

• Every days I save a Favorite directory by the specific button but after the...
• next in

## PRO/Engineer (Creo) discussions

• Hi Does someone know where I can find information about the applied rotations...
• previous in

## PRO/Engineer (Creo) discussions

• Even I check the all dependencies everything looks good. All the sub components...
• last updated in

## PRO/Engineer (Creo) discussions

• Even I check the all dependencies everything looks good. All the sub components...
• last posted in

## PRO/Engineer (Creo) discussions

• Mieszkaniec Ostrołęki upadł z wysokości drugiego piętra. Zginął na...
• site's last updated in

## Engineering Science (Polish)

• Mieszkaniec Ostrołęki upadł z wysokości drugiego piętra. Zginął na...