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: Feature Tree Notes

jelte_steur_infojelte_steur_info Member Posts: 580 PRO

Hi all,

I abused custom feature scripts to create a hacky alternative to Document notes.
I've been working on an elaborate complicated CAD model for a client. They'll be editing later for alternate versions of a similar design.

I found myself using the 'description feature' of variables and query variables regularly, and wanting something like that with other features.

So I created "Feature Tree Notes" that allows you to add notes in context of the feature tree where you want it for future users of the model:

LINK HERE

Feature Tree Note FS.jpg

https://cad.onshape.com/documents/afc74bf7462dbbdaf38eec8d/w/ef9a0f17f6e2e3b88b6a4ec5/e/856bb8c77f61f7ec3699d5fa

Tagged:

Comments

  • MichaelPascoeMichaelPascoe Member Posts: 2,671 PRO

    This is really cool! Ty.


    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   Learn How to FeatureScript Here 🔴
  • EvanReeseEvanReese Member, Mentor Posts: 2,670 PRO

    I love it! I made a "note" feature a while back I never released, but yours is better. Have you seen the Design Intent feature? Very similar, but lets you choose which features you're talking about, which is a nice touch. It'd be a breeze to add that to yours if it helped.

    https://cad.onshape.com/documents/6844a9eee3d54ac5624bae3f/v/d627c5b91d79405fe0ed456d/e/1b2a5671035aac52d381cb40

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

    It's okay everybody I've got the answers to the questions I know you were gonna ask. There's a 512 character limit on the hover description, but seemingly no limit on the more text field under that.

    image.png
  • EvanReeseEvanReese Member, Mentor Posts: 2,670 PRO

    lol my new favorite lorum ipsum alternative

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • jnewthjnewth Member, OS Professional Posts: 83 PRO

    There is a 1e6 character count limit:

    Greenshot 2025-11-13 21.13.07.png

    640K ought to be enough for anybody, right @ilya_baran ?

  • EvanReeseEvanReese Member, Mentor Posts: 2,670 PRO
    edited November 20

    "640K ought to be enough for anybody" hey I get that reference.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • Derek_Van_Allen_BDDerek_Van_Allen_BD Member Posts: 372 PRO
    edited November 19

    @jelte_steur_info Already starting to put this into practice and I'm realizing it might be helpful to be able to add some kind of geometry selection to the feature to be able to highlight what the note pertains to. Right now I've been highlighting parts by creating a query variable in the tree right under the note feature to act as a highlight but that could get messy if my tutorial docs get real lengthy.

  • jelte_steur_infojelte_steur_info Member Posts: 580 PRO

    Hey all,

    I'm happy such a simple solution can bring such excitement and good use for you all.

    @Derek_Van_Allen_BD : Geometry and features can now be referenced, and geometry will be highlighted upon hover (I actually got to code outside of the precondition!)

    @jnewth : I guess Bill was right. 640k ought to be enough…

    Feature Tree Note FS.jpg
  • marci_van_dortmarci_van_dort Member Posts: 14

    Thanks Jelte, I love this feature!

    she/her

  • martin_kopplowmartin_kopplow Member Posts: 1,060 PRO

    I first thought it was not as important, but now I think it is a sweet little helper. It is a bit like commenting code in a script right where things happen, not in a manual. Thanks!

Sign In or Register to comment.