1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-07 16:06:31 +02:00

Added opengrab_screw_depth() function.

This commit is contained in:
Chris Palmer
2021-04-02 19:25:42 +01:00
parent 52e9c1d7fd
commit c073419c0b
2 changed files with 2 additions and 0 deletions

View File

@@ -2030,6 +2030,7 @@ A permanent magnet that can be magnatized and de-magnatized electronically.
| `opengrab_depth()` | Module height |
| `opengrab_pcb()` | The PCB |
| `opengrab_pcb_z()` | PCB offset from the front |
| `opengrab_screw_depth()` | Max screw depth in pillars |
| `opengrab_target_thickness()` | Target sheet thickness |
| `opengrab_width()` | Module width |

View File

@@ -62,6 +62,7 @@ function opengrab_depth() = depth; //! Module heig
function opengrab_target_thickness() = target; //! Target sheet thickness
function opengrab_pcb() = pcb; //! The PCB
function opengrab_pcb_z() = depth - pillar - pcb_thickness(pcb); //! PCB offset from the front
function opengrab_screw_depth() = 4; //! Max screw depth in pillars
module opengrab() { //! Draw OpenGrab module
vitamin("opengrab(): OpenGrab V3 electro permanent magnet");