Post Custom Boolean Option

Having problems with or questions about SheetCam? Post them here.
Post Reply
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Post Custom Boolean Option

Post by David_Lelen01 »

Hey Les, when defining a post custom option and setting it to a boolean, the popup box shows either 0 or 1, could it be customized or made to show True/Flase or Yes/No?
User avatar
djreiswig
Posts: 471
Joined: Sat Feb 20, 2016 4:47 am
Location: SE Nebraska

Re: Post Custom Boolean Option

Post by djreiswig »

It should show a check like the custom tool options. I noticed this a while ago.
User avatar
Les Newell
Site Admin
Posts: 3660
Joined: Thu May 11, 2006 8:12 pm

Re: Post Custom Boolean Option

Post by Les Newell »

I'll look into it. Making it display true/false means some changes to the way custom values are handled, which may turn into a bit of a rabbit hole.
User avatar
djreiswig
Posts: 471
Joined: Sat Feb 20, 2016 4:47 am
Location: SE Nebraska

Re: Post Custom Boolean Option

Post by djreiswig »

The tool and operation custom settings with boolean values show as check boxes, only the custom post option doesn't if you set it as boolean.
David_Lelen01
Posts: 452
Joined: Wed Sep 12, 2018 8:18 pm
Location: South Carolina, USA
Contact:

Re: Post Custom Boolean Option

Post by David_Lelen01 »

Yeah, a check box even would be fine too.
User avatar
djreiswig
Posts: 471
Joined: Sat Feb 20, 2016 4:47 am
Location: SE Nebraska

Re: Post Custom Boolean Option

Post by djreiswig »

I noticed that the boolean options in the custom post still show as 0 or 1 and not a checkbox in the latest versions. Guessing this slipped through the cracks.
User avatar
Les Newell
Site Admin
Posts: 3660
Joined: Thu May 11, 2006 8:12 pm

Re: Post Custom Boolean Option

Post by Les Newell »

I'll add it back into the to-do list
User avatar
Les Newell
Site Admin
Posts: 3660
Joined: Thu May 11, 2006 8:12 pm

Re: Post Custom Boolean Option

Post by Les Newell »

Sorry for the delay. I'm now pushing for an update but I can't replicate this one. Booleans show as check boxes in V7.0.19 and V7.1.22.
As a test I added this code to a post:

Code: Select all

post.DefineCustomToolParam("PlasmaTool", "test", "test", sc.unitBOOLEAN, 0,0,1)
Plasma tools get an extra parameter called 'test' that is a check box.
User avatar
djreiswig
Posts: 471
Joined: Sat Feb 20, 2016 4:47 am
Location: SE Nebraska

Re: Post Custom Boolean Option

Post by djreiswig »

It's not the tool parameters, it's the post options. The popup that appears from the button in the post selection window.
User avatar
Les Newell
Site Admin
Posts: 3660
Joined: Thu May 11, 2006 8:12 pm

Re: Post Custom Boolean Option

Post by Les Newell »

Perhaps I should have actually read the whole thread rather than just the last few posts :oops: I'll take a look at it.
User avatar
djreiswig
Posts: 471
Joined: Sat Feb 20, 2016 4:47 am
Location: SE Nebraska

Re: Post Custom Boolean Option

Post by djreiswig »

Was this ever fixed?
Post Reply