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 FS: Extract Flat - creates solid body of a Sheet Metal Flat

joshtargojoshtargo Member Posts: 241 EDU

Hard to believe this didn't exist as a native tool (maybe it does?)

link: Extract Flat

How can I get the name of the original selected body to use in the name of the new body?


Comments

  • EvanReeseEvanReese Member, Mentor Posts: 2,135 ✭✭✭✭✭

    @joshtargo cool feature! It did jog my memory though and there's already a custom feature doing this. Keep it up though. I've been loving seeing your new features coming through. Cool stuff.

    As for setting the name to match another part I don't believe it's possible since the name is a part property and the part properties are calculated after feature regeneration when the model rebuilds so they don't exist for your feature code to access.

    Evan Reese
  • Caden_ArmstrongCaden_Armstrong Member Posts: 177 PRO

    @EvanReese In all fairness, even I forgot about that feature…and I wrote it.
    I need to go back and find all my old features and add them to fs.place. fs.place is supposed to make it easier to find feature, but its flaw is that they need to be added.

    You can pull properties like name with getProperty, but only during editing logic. Which means that if you do use it, you won't have a truly parametric model (upstream name changes won't reflect in your feature until you trigger an edit), but that could be fine in many cases.

    www.smartbenchsoftware.com --- fs.place --- Renaissance
    Custom FeatureScript and Onshape Integrated Applications
  • joshtargojoshtargo Member Posts: 241 EDU

    😭theirs is so much simpler than mine

    but thank you!

    did you try the Statics Solver?

  • joshtargojoshtargo Member Posts: 241 EDU

    I think that would be ok if it's just to come up with the initial name, but we both have a working feature already, the name isn't a biggie. but thanks.

  • EvanReeseEvanReese Member, Mentor Posts: 2,135 ✭✭✭✭✭

    @Caden_Armstrong hahaha!

    @joshtargo Don't feel bad. Caden is a code monster. I've not tried statics solver yet. TBH I'm not sure what to do with it. I've skimmed through the post, but I'm trained as an industrial designer so I've never done statics stuff like that and it's not familiar to me. Any chance you'd make a loom tour of it or something?

    Evan Reese
  • joshtargojoshtargo Member Posts: 241 EDU

    @EvanReese I'm not usually one for making video tutorials, but I could try….

  • EvanReeseEvanReese Member, Mentor Posts: 2,135 ✭✭✭✭✭

    Up to you. Most likely I just need to go down my own self-learning on statics and it'll all make sense.

    Evan Reese
Sign In or Register to comment.