Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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_Mill
Member Posts: 225 PRO
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.
Tagged:
0
Best Answer
-
EvanReese Member, Mentor Posts: 2,173 ✭✭✭✭✭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 Reese2
Answers
(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.
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?
@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! Learn How to FeatureScript Here 🔴