# CNC - generating toolpaths

**URL:** <https://discourse.mcneel.com/t/cnc-generating-toolpaths/463>\
**Category:** Rhino for Windows\
**Created:** [June 27, 2013, 2:08pm UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463 "2013-06-27T14:08:05Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikkkko](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nikkkko/32/51337_2.png) [@nikkkko](https://discourse.mcneel.com/u/nikkkko)\
**Post date:** [June 27, 2013, 2:08pm UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/1 "2013-06-27T14:08:06Z")

</div>

Hi,

We build cabins and use a lot of 18mm ply which is cut and routed to be assembled as structural parts. Currently I design in Rhino, lay out the parts flat, use make3d, export as dxf then import the dxf into VCarve which I use to generate toolpaths. In VCarve I might need to make offsets, join curves to create closed areas for pocketing and add ‘dog bone’ fillets for corners. It’s time consuming but it works.

However… does anyone know of a way I might streamline this by producing toolpaths directly from the parts in my Rhino file - especially without having to lay them out flat? Can MadCam or RhinoCam or some other add on do this for me?

Nick

---

<div class="post-metadata">

**Author:** ![JimCarruthers](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jimcarruthers/32/504725_2.png) [@JimCarruthers](https://discourse.mcneel.com/u/JimCarruthers)\
**Post date:** [June 27, 2013, 2:17pm UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/2 "2013-06-27T14:17:26Z")

</div>

Hi Nick,

RhinoCAM probably sounds like a bit of overkill for 2D routing, and I’m not sure it would do any of the detailing you need automatically anyway. Most or all of that could certainly be automated by scripting, I’ve done that before, then you just have to quickly run it through VCarve to get the actual G-code.

---

<div class="post-metadata">

**Author:** ![donl517](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/donl517/32/773714_2.png) [@donl517](https://discourse.mcneel.com/u/donl517)\
**Post date:** [June 27, 2013, 2:37pm UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/3 "2013-06-27T14:37:30Z")

</div>

@Nick you can get an evaluation of both, I use RhinoCAM and it is ok, they do have a free mill plugin, I have no idea what the limitations it has. The thing I like best about it is I have all the native Rhino tools at my disposal, including scripting if I need something custom.

---

<div class="post-metadata">

**Author:** ![nikkkko](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nikkkko/32/51337_2.png) [@nikkkko](https://discourse.mcneel.com/u/nikkkko)\
**Post date:** [June 27, 2013, 3:26pm UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/4 "2013-06-27T15:26:06Z")

</div>

I hesitate to try RhinoCam even thought I’ve read mostly good things about it, mostly because it does seem to be serious overkill for 2 1/2 D milling. If I could get the parts to lay flat, do my dog bone and offset in Rhino then export the result, that would already be a major time saver.

So… scripting… I suppose I should try it sometime.

---

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [June 27, 2013, 3:38pm UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/5 "2013-06-27T15:38:05Z")

</div>

There are also some people experimenting with generating G-Code with Grasshopper. I do not know how far they have gotten, but you might check in at the GH forum and have a looksee…  
–Mitch

---

<div class="post-metadata">

**Author:** ![FrankS](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/franks/32/656109_2.png) [@FrankS](https://discourse.mcneel.com/u/FrankS)\
**Post date:** [June 27, 2013, 7:54pm UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/6 "2013-06-27T19:54:11Z")

</div>

The toolchain over here: Rhino/Grasshopper, RhinoNest and RhinoCAM.

RhinoNest: has a re-orient function to lay object out in 2d (plus nesting). quite convenient, includes labeling.  
RhinoCAM: I would not consider it overkill, since half of what RC does is 2.5-axis (woodworking) operations. ok, you also pay for a couple of 3-axis operations in the standard version, but that does not mean you overkill the 2d part.

Grasshopper:  
– Dog bone fillets:

> **[Dogbone corners for 90 degree cnc router joints](https://www.grasshopper3d.com/forum/topics/dogbone-corners-for-90-degree-cnc-router-joints)**
>
> Here is a grasshopper definition for adding inside and outside dogbone corner notches to a file that will be tab fit 90 degree cnc joints. These notches must b…

– G-code generation:

> **[G-code](https://www.grasshopper3d.com/forum/topics/g-code)**
>
> Hello,
> I am trying to create my own custom g-code writer for 3d printing, and I first have a basic question which I hope someone can help me with - I would lik…

– Re-orient to 2d-layout:

> **[Re-orient solids for 2D-CNC layouts](https://www.grasshopper3d.com/profiles/blogs/gh-remapper-reorient-03-gh)**
>
> GH\_Remapper\_ReOrient\_03.gh
> 
> Purpose: preparation of 2d-layout for cnc-cutting.
> 
> Select any number of solids in space.
> \- They will be layed out on the xy-plane…

---

<div class="post-metadata">

**Author:** ![DanBayn](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/danbayn/32/477847_2.png) [@DanBayn](https://discourse.mcneel.com/u/DanBayn)\
**Post date:** [June 28, 2013, 12:37am UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/7 "2013-06-28T00:37:56Z")

</div>

I would suggest you take a look at madCAM 5 for Rhino 5. There are a variety of levels available, so for your needs you wouldn’t need to spend a lot of money for features you may never use.

Dan

---

<div class="post-metadata">

**Author:** ![nick](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nick/32/420950_2.png) [@nick](https://discourse.mcneel.com/u/nick)\
**Post date:** [June 28, 2013, 3:03am UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/8 "2013-06-28T03:03:16Z")

</div>

RhinoCam Standard is mostly 2d: [http://rhinocam.com/RhinoCAM2012Features.shtml](http://rhinocam.com/RhinoCAM2012Features.shtml) RhinoCam has some nice 2d CNC features like tabs and it is very easy to use.  
Nick

---

<div class="post-metadata">

**Author:** ![nikkkko](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nikkkko/32/51337_2.png) [@nikkkko](https://discourse.mcneel.com/u/nikkkko)\
**Post date:** [June 28, 2013, 5:29am UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/9 "2013-06-28T05:29:20Z")

</div>

@FrankS Thanks for the links.

I think maybe I’ll check out all the preparation tools before looking at RhinoCam or MadCam. I hadn’t mentioned nesting earlier, but that’s also a big time consumer as the VCarve nesting utility gives poor results and I usually end up doing it by hand.

---

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [June 28, 2013, 9:04am UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/10 "2013-06-28T09:04:25Z")

</div>

@FrankS Re our conversation on the old newsgroup a couple of months ago, Steve added EnablePlugIn() to Python in SR5, so the scripts below now work for enabling/disabling RhinoCAM… thought I’d post them here in cane anyone else wants them. I also have vb Rhinoscript equivalents if anyone wants those.

–Mitch

```python
import rhinoscriptsyntax as rs
def EnableRhinoCAM():
    msg = 'RhinoCAM is now enabled.\n'
    msg += 'You must restart Rhino for this to take effect.'
    rs.EnablePlugIn("299f02bc35384343aca5d66aaaeb789b", True)
    rs.MessageBox(msg, 64, 'RhinoCAM Loader')
EnableRhinoCAM()

```

```python
import rhinoscriptsyntax as rs
def DisableRhinoCAM():
    msg = 'RhinoCAM is now disabled.\n'
    msg += 'You must restart Rhino for this to take effect.'
    rs.EnablePlugIn("299f02bc35384343aca5d66aaaeb789b", False)
    rs.MessageBox(msg, 64, 'RhinoCAM Unloader')
DisableRhinoCAM()

```

---

<div class="post-metadata">

**Author:** ![nick](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nick/32/420950_2.png) [@nick](https://discourse.mcneel.com/u/nick)\
**Post date:** [June 28, 2013, 3:59pm UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/11 "2013-06-28T15:59:12Z")

</div>

Hi Mitch,  
Curious about how or why these would be used. Since they require a restart of Rhino anyway, how do they help?  
(No doubt I’m missing something here…)  
Nick

---

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [June 28, 2013, 4:37pm UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/12 "2013-06-28T16:37:29Z")

</div>

As far as I know, there is no actual way of disabling RhinoCAM 2012 in Rhino 5 without going into the plug-ins manager. This script is simply a shortcut to doing that. Many people like myself do not use RhinoCAM constantly, so I only want to load it occasionally.  
–Mitch

---

<div class="post-metadata">

**Author:** ![Marc](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/marc/32/494790_2.png) [@Marc](https://discourse.mcneel.com/u/Marc)\
**Post date:** [July 2, 2013, 7:16pm UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/13 "2013-07-02T19:16:02Z")

</div>

I tried RhinoNest on a project and it worked very well.

---

<div class="post-metadata">

**Author:** ![chad\_s\_compton](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/chad_s_compton/32/383003_2.png) [@chad\_s\_compton](https://discourse.mcneel.com/u/chad_s_compton)\
**Post date:** [June 1, 2022, 9:51pm UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/14 "2022-06-01T21:51:38Z")

</div>

HI Nikkko-

Did you find a solid resolution for this? I am in search of the same. We also use AutoCad here at my company and found a plug-in for it that does EXACTLY what we need. It part labels and turns 3d parts to 2d tool pathed flat patterns with just a couple clicks… I am searching for the same solution in Rhino. Waiting for RhinoCam to call me back, but assuming that is not the solution. Let me know. Thanks, Chad

---

<div class="post-metadata">

**Author:** ![Petras\_Vestartas](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/petras_vestartas/32/480531_2.png) [@Petras\_Vestartas](https://discourse.mcneel.com/u/Petras_Vestartas)\
**Post date:** [June 5, 2022, 5:06pm UTC](https://discourse.mcneel.com/t/cnc-generating-toolpaths/463/15 "2022-06-05T17:06:11Z")

</div>

If you up to coding and implementing open source projects this is one we developed at Ibois EPFL for 5 axis cnc machine:

> **[GitHub - ibois-epfl/Raccoon: Development code for Petras Vestartas](https://github.com/ibois-epfl/Raccoon)**
>
> Development code for Petras Vestartas. Contribute to ibois-epfl/Raccoon development by creating an account on GitHub.
