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.

Configure Part Name Feature?

Cache_River_MillCache_River_Mill Member Posts: 225 PRO
edited June 2020 in Community Support
Does anyone have a custom feature for naming parts? We would like to configure the name of the part with an input variable. Configuring the name through the properties does not work for this application.

Best Answer

  • EvanReeseEvanReese Member, Mentor Posts: 2,083 ✭✭✭✭✭
    edited June 2020 Answer ✓
    I actually worked on one for that too. It's here. To give credit where it's due, I started by copying one by @NeilCooke
     (yet again) and modifying it only a tiny bit. Check his out here. I'd eventually like to find a way to toggle each field between a string or an equation, but for now, the prefix and suffix are strings and the segments are type "Any" meaning they can do calculations. It can also assign the part number if that's useful.
    Evan Reese

Answers

  • EvanReeseEvanReese Member, Mentor Posts: 2,083 ✭✭✭✭✭
    edited June 2020 Answer ✓
    I actually worked on one for that too. It's here. To give credit where it's due, I started by copying one by @NeilCooke
     (yet again) and modifying it only a tiny bit. Check his out here. I'd eventually like to find a way to toggle each field between a string or an equation, but for now, the prefix and suffix are strings and the segments are type "Any" meaning they can do calculations. It can also assign the part number if that's useful.
    Evan Reese
  • Cache_River_MillCache_River_Mill Member Posts: 225 PRO
    You and Neil are so helpful. Thank you again!

  • Cache_River_MillCache_River_Mill Member Posts: 225 PRO
    It will not give me access to the first link. Perhaps it's private? @Evan_Reese
  • EvanReeseEvanReese Member, Mentor Posts: 2,083 ✭✭✭✭✭
    It will not give me access to the first link. Perhaps it's private? @Evan_Reese
    my bad I just made it public. give it a go now.
    Evan Reese
  • Cache_River_MillCache_River_Mill Member Posts: 225 PRO
    Excellent.
  • Design_BroDesign_Bro Member Posts: 14 PRO

    Is there a way to auto-populate some of the fields? Unless I'm mistaken, it seems like a lot of this just puts the data entry into one location. Which is great, but say I want the name to reflect the generated part number. Is there a way for the config to pull said part number, without me entering it manually?

  • MichaelPascoeMichaelPascoe Member Posts: 1,956 PRO
    edited 7:20PM

    @Design_Bro It depends on how large your scope is. If you are staying within the part studio and just want the name of the part to auto populate throughout the studio, then you can assign a variable at the start of the studio then use that variable to access the parts name.

    If you want the name of the part to be accessible throughout that document, you can name the parts from variables from a variable studio.

    If you need mass auto naming for part number generation, you would need to use an integrated app like Arena (PLM / PDM). Or you could have a custom app made that controls the names and meta-data per your specific needs. CADSharp specializes in custom apps and features so feel free to reach out to me if you need anything for your company.

    -
    Here is an example of an app we made a while back that controls the meta-data all tabs of related documents per project for the client. Something like this could be modified to set part numbers instead. How it works is it stores the project data somewhere, in this case in a single variable studio per that project. Then, it finds all of the assigned documents for that "Project". The app then finds each tab in all assigned documents and updates their meta-data (Client name, Project number, etc…)



    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   cadsharp.com/featurescripts 💎
Sign In or Register to comment.