Sign in to follow this  

NETHOOK question Spline from Chains

Recommended Posts

When I call my code like this :

    let chains9 = ChainManager.ChainAll(true, false, null, ChainDirectionType.Clockwise, 570)
          ChainManager.SortChains(chains9, ChainManager.SortType.Area, ChainManager.SortOrder.Descending)
          GeometryCreationManager.CreateParametricSplineFromChain(chains9.[0], 0.015, Mastercam.GeometryUtility.Types.OriginalCurvesDisposition.Delete, 500)

Mastercam converts all the chains in the current chain array into splines rather than only the one at the indicated index, I am able to work around this however I was hoping to understand a bit more about what this function does.

Share this post

Link to post
Share on other sites

In this case the let binding is equivalent to c# var

Share this post

Link to post
Share on other sites

What you see via your NET-Hook add-in is an "array of chains". Internally to Mastercam this is a linked-list of chains.

So, even though you passed the first chain in the array, that chain and all of the downstream chains in the linked-list will be processed.


  • Thanks 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us