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.
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.
I hope I make myself clear?
By the way Proe 2001.
Thanks
Geoff
Reply to
Geoff
Loading thread data ...
: 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
Reply to
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.
Reply to
Geoff

Site Timeline

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.