Sign in to follow this  

NetHook CoolantParams

Recommended Posts


There are currently no examples for this. How do I set CoolantParams for a Mastercam.Database.Operation so that

  • Coolant 1-3 are ON
  • Coolant 1 is BEFORE
  • Coolant 2 is WITH
  • Coolant 3 is AFTER

The following code sets ON and BEFORE to *all* coolant options

				var cool = new Mastercam.Operations.Types.CoolantParams()
					Positions = new Mastercam.Operations.Types.CoolantPosition(Mastercam.Operations.Types.CoolantPositionType.Before),
					States = new Mastercam.Operations.Types.CoolantState(Mastercam.Operations.Types.CoolantStateType.On)
				op.Coolant = cool;

and I really can't find a way to set them individually as the interface is very confusing. Thanks for help.


EDIT: As usual, found out the solution a few minutes after posting. Have to use the indexers (which I had completely missed)

			cool.Positions[0] = Mastercam.Operations.Types.CoolantPositionType.Before;
				cool.States[0] = Mastercam.Operations.Types.CoolantStateType.On;
				cool.Positions[1] = Mastercam.Operations.Types.CoolantPositionType.With;
				cool.States[1] = Mastercam.Operations.Types.CoolantStateType.On;
				cool.Positions[2] = Mastercam.Operations.Types.CoolantPositionType.After;
				cool.States[2] = Mastercam.Operations.Types.CoolantStateType.On;



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