Customizable 3in base Tensionable Soft Jaw Vice for Desktop CNC

Update 11/19/2017
Changed one line of code pointed out by imalipusram to fix a bug when W_Wid is increased beyond 10.5mm.

Update 4/26/2017
I added a dimensioned image that shows the variable names you might want to change. After updating this once already & having to deal with 2 files, there is only one openscad file. I think it is pretty flexible now.If you want a version between 40mm & 76.2mm, set Long_Or_Short = 0. You can have a 2 piece vice and/or 2 piece slider. I am thinking the 1 piece vice with 2 piece slider is going to be easier to adjust for me, but have not tried it in place yet. I will add some more photos after clamping a board down.

New variables added are:

Long_Or_Short = 1; //0 = Short (40mm to 76.2mm Spacing), 1 = Long (76.2mm or Greater)
Slider_Type = 1; //1 = One Solid Slider, 2 = two piece Slider
Vice_Type = 1; //1 = Solid Base Vice, 2 = Base Vice Split into 2 pieces

I started out to just make a dovetail joint for the slider which works better for me, but then decided to make it variable length after seeing a couple of comments of the original design. I also cut out about 10 cubic centimeters of plastic and it seems to be just as sturdy. There are 2 openscad files for a shorter hole spacing & a version for 3" or longer spacing. The minimum spacing for the 2" version is 40mm & the minimum spacing for the 3" version is 76.2mm (3"). If you want a spacing between 40mm & 76.2mm use the shorter version.

To change the hole spacing change the variable:

Spacing = 76.2; //76.2mm = 3"

I would suggest you print 3in_Base_ViceAndSliderModTestSize_Rev15.stl 1st to see how well the dovetail joint & screw & nut sizes work for you. If you change the hole and or Nut sizes in the 3in_Base_ViceAndSliderMod_Rev15.scad file, you can set the variable:

Test_Print = 1; //1 = print test print

If you are going to change hole sizes, these are the variables to look at:

VertHole_OD = 4.4; //Originally 4.06mm (Slot Holes sized for #6)
Hole_OD = 5.20; //Originally 4.91mm (#10 screws connect to Slider)
Hole_Res = 24;
NutTrap_Wid = 10.1; //Width across the flats of the Nut (#10 Nuts)
NutTrap_Thk = 3.3; //Thickness of #10 Nuts

If I missed something or need something clarified, just ask.