Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

new custom feature: Boolean Variable

jelte_steur_infojelte_steur_info Member Posts: 635 PRO
edited December 2025 in FeatureScript

Happy winter solstice to everyone!

I was grouping some dynamic suppressions in a configurable document and creating a regular variable, setting it to 'any' and creating an equation, (or typing "true" manually.)
This bothered me, I figured this should be easier if I'm going to do this a lot.
so I created a dedicated:
Boolean Variable

Boolean Variable FS.jpg
Tagged:

Comments

  • Derek_Van_Allen_BDDerek_Van_Allen_BD Member Posts: 597 PRO

    I should do something like this for doing directional flipping when you enter negative values for things like offsets or move faces. Save myself the need to remember the expression syntax.

  • ry_gbry_gb Member, csevp, pcbaevp Posts: 159 PRO
    edited December 2025

    I just did this the other day. It didn't seem like a lot of effort, but I can see that it would get annoying if I had to do this a lot. Adding this to my toolbar.

    Ramon Yip | glassboard.com

  • jelte_steur_infojelte_steur_info Member Posts: 635 PRO

    @Derek_Van_Allen_BD.
    I imagine this as an "absolute variable" FS that takes in a variable and outputs two new ones, reusing the names etc.

    input: #offset

    output: #offset_abs (is same type as input).
    #offset_flip (is boolean)

  • eric_pestyeric_pesty Member, pcbaevp Posts: 2,507 PRO

    The native variable feature really should have a "Boolean" option (in addition to "any")!

Sign In or Register to comment.