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.

Feature Script and Configurations

Ricky_HuffRicky_Huff Member Posts: 6 PRO

I would really like to have a feature script that cleanly captures and defines configuration variables similar to the way that Greg Brown did in this video.  (3:15 Chassis base data) Unfortunately, I am a total Feature Script noob. Is there an example feature script I can reference to create my own? Thanks!

Answers

  • EvanReeseEvanReese Member, Mentor Posts: 2,864 PRO

    I used to have a video about doing this, but it was on an old channel. Might get around to making the updated version, but for now, my Manufacturing Variables custom feature is a decent reference for code. It's a good starter project for FS too since you don't need to deal with queries, Ids, and so on.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • romeograhamromeograham Member, csevp Posts: 748 PRO

    Use the Publish Geometry custom feature that Greg Brown uses in the YouTube video you showed.

    Here's his updated video with the link to the Publish Geometry feature:

    Here's a direct link to his Publish Geometry (CF) feature.

    It's a truly fantastic workflow, borrowed from Creo.

  • MichaelPascoeMichaelPascoe Member Posts: 2,811 PRO
    edited August 2025

    If you want to learn FeatureScript, then I recommend these two resources:

    FeatureScript Fundamentals by Onshape

    FeatureScript Video Tutorials by CADSharp

    If you don't want to use FeatureScript and would rather make the inputs with a custom feature,
    you can do that with this Input.png Inputs custom feature.

    Related, but not specifically made for creating variables, is the Product Catalog custom feature.
    You could easily apply the techniques from the video into a variable making feature. However, Evan's feature will be close to what Greg showed.
    This walkthrough shows you how to build the Product Catalog feature from scratch in case you want to learn the techniques:

    .


    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    ▚▞▚▞▚▞▚▞▚
    ________________________________________________________________________
  • Ricky_HuffRicky_Huff Member Posts: 6 PRO

    Thanks to all for the great recommendations and comments!

Sign In or Register to comment.