Operation menu

Having problems with or questions about SheetCam? Post them here.
Post Reply
weldnman
Posts: 2
Joined: Sat Jun 18, 2016 2:05 am

Operation menu

Post by weldnman »

Just wondering if is it possible to add more options in the operation menu? Now that I have a plate marker it would be great to not have to be changing settings I the Jet Cutting tab all the time.

Thanks
Rod
User avatar
Les Newell
Site Admin
Posts: 3665
Joined: Thu May 11, 2006 8:12 pm

Re: Operation menu

Post by Les Newell »

This isn't documented but post.DefineCustomToolParam also works for operations. For instance this code:

Code: Select all

post.DefineCustomToolParam("JetOperation", "Extra parameter", "extraParam", sc.unitLINEAR, 100, 0, 1000)
would create an option called 'Extra parameter' which would appear in the post as the variable extraParam. It would default to 100 with a minimum of 0 and a maximum of 1000.
Post Reply