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.

Having a part property that evaluates differntly depending on the parts category

Hi All,
I'm curious if I'm approaching this wrong or if it is an onshape problem.
My understanding of the value of having part categories was to allow you to have multiple properties with the same name but evaluated differently based on the part category. So i have set up multiple part properties that have the same display name but are assigned to different part categories, for example i have 4 part categories that each have a property with display name "THICKNESS" because I want this property to be evaluated differently based on the production process I will use for the part. But now the issue I have run into is that when I go to create a BOM template, I go to add a column for said "THICKNESS" property it gives me 4 options for "THICKNESS" and when added only evaluates that property for parts of one of the part categories.
Is there a way for me to accomplish this? ie have a part property that evaluates differently based on the category?

Best Answer

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,688
    Answer ✓
    Hi Daniel - a category is simply a filter to show/hide properties (and each property is unique even if they have the same display name). You can add the same property to multiple categories. Not sure how you would process the result differently though.
    Senior Director, Technical Services, EMEAI

Answers

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,688
    Answer ✓
    Hi Daniel - a category is simply a filter to show/hide properties (and each property is unique even if they have the same display name). You can add the same property to multiple categories. Not sure how you would process the result differently though.
    Senior Director, Technical Services, EMEAI
  • Daniel_O_LearyDaniel_O_Leary Member Posts: 6 PRO
    NeilCooke said:
    Hi Daniel - a category is simply a filter to show/hide properties (and each property is unique even if they have the same display name). You can add the same property to multiple categories. Not sure how you would process the result differently though.
    Is there any way to create a part property that is dependent on the parts category? ie rather than having a unique property for each category i could have one property that evaluates differently based on the category? or is that beyond the scope of the part category feature?

  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,688
    You can do it with a computed part property using the getProperty() function with the “category” id. 
    Senior Director, Technical Services, EMEAI
Sign In or Register to comment.