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.

Query Variables: Complete tutorial

EvanReeseEvanReese Member, Mentor Posts: 2,670 PRO

Query Variables are unbelievably useful, but kinda hard to learn, so I made a deep dive video to flatten the learning curve a bit. Hope it helps!

Evan Reese
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com

Comments

  • romeograhamromeograham Member, csevp Posts: 725 PRO

    This is a very useful video with great background AND detailed info - really helped me understand more about how to use Query Variables effectively.

  • eric_pestyeric_pesty Member, pcbaevp Posts: 2,461 PRO

    Yep, awesome video as usual!

  • adrian_vlzkzadrian_vlzkz Member, pcbaevp Posts: 301 PRO

    Awesome! Would love to see some examples of Query Variable in the context of Master Modeling, I feel it can be the backbone for really robust Master Models

    Adrian V. | Onshape Ambassador
    CAD Engineering Manager
  • FlyingSquirrelFlyingSquirrel Member Posts: 2

    Fantastic video, Evan. I’m so glad I found your channel early in my OnShape journey. Your teaching style and content is spot-on for what I am looking for. I wish you great success with the channel.

  • EvanReeseEvanReese Member, Mentor Posts: 2,670 PRO

    Thanks, everyone! @adrian_vlzkz I like your thinking on this. I hope to one day create a very detailed top-down demo model and QVs will be part of that for sure.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • MichaelPascoeMichaelPascoe Member Posts: 2,671 PRO

    Let's gooo, @EvanReese is on a Tutorial Spree!

    480px-H3_Medal_Splatter_Spree.png

    .
    .

    .

    .


    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   Learn How to FeatureScript Here 🔴
  • chadstoltzfuschadstoltzfus Member, Developers, csevp Posts: 167 PRO

    Great video, Evan. Query variables are something we've been trying to figure out if they can address any of our needs, and it's been stumping us. The problem is since we have team members that are skilled in FeatureScript, it's be difficult to figure out what query variables can do for us that building a custom feature cannot. Once I get a chance to play around, I'm convinced that there will be some cool things we can do with custom features that produce query variables or ones that take query variables as parameters.

    Applications Developer at Premier Custom Built
    chadstoltzfus@premiercb.com
  • EvanReeseEvanReese Member, Mentor Posts: 2,670 PRO

    It doesn't have to be either/or though. You could even just begin to modify your features to do what they already do, but also spit out some query variables of important things that can be operated on by downstream features. That way you could use native tools for certain parts of the workflow. But if you're using only your own custom features then I guess attributes can do the same thing for you.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • Derek_Van_Allen_BDDerek_Van_Allen_BD Member Posts: 368 PRO

    @chadstoltzfus I'm starting to use query variables (and my query variable+ feature) as a way to solve one-off problems that don't occur often enough to justify developing a custom solution to a problem. If people are using the same handful of steps in a workflow that's when I start to bake the logic into a tailored featurescript.

    @EvanReese that's why I just pushed an update to Poly-Mate Connectors that allows you to define a QV directly in the feature so you can reuse the groups from it in any number of other features, whether they're standard library or custom features.

Sign In or Register to comment.