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.
Creating an accurate BOM in part studios even when all of the parts aren't replicated
monroe_weber_shirk
Member Posts: 96 EDU
I'd like to create an accurate BOM for a drinking water treatment plant in a part studio (not an assembly). I'm in the process of implementing that by attaching part info as an attribute to each unique part when the part is created. That way if the part is replicated the attributes go with it and the part count remains accurate. I want to take this one step further. I want the ability to not actually replicate the geometry of all of the parts so that regeneration time remains fast. AND I want the part count to still be accurate for the BOM.
My proposed solution is to add a counter to the part attribute that would be multiplied by the replications when the geometry isn't actually replicated. Thus this one part would essentially represent all of the identical parts and it would know how many of those parts exist in our water treatment plant.
We would have the option of either replicating the geometry or multiplying the counter for a representative part depending on whether we wanted to show the geometry or not. In either case, the BOM would be correct. In the ideal world this would be an option in the linear pattern feature.
My question...
Given that this isn't likely going to be an option in the linear pattern feature, what is the best way to create this?
My proposed solution is to add a counter to the part attribute that would be multiplied by the replications when the geometry isn't actually replicated. Thus this one part would essentially represent all of the identical parts and it would know how many of those parts exist in our water treatment plant.
We would have the option of either replicating the geometry or multiplying the counter for a representative part depending on whether we wanted to show the geometry or not. In either case, the BOM would be correct. In the ideal world this would be an option in the linear pattern feature.
My question...
Given that this isn't likely going to be an option in the linear pattern feature, what is the best way to create this?
- Create a copy of the linear pattern feature and edit it to have this additional feature (seems like a bad coding practice)
- Create a new part attribute linear pattern feature that only multiplies the counter on the part and then uses a configuration Boolean to select either the linear pattern feature or the part attribute linear pattern feature.
- A completely different approach that I didn't think of!
Tagged:
0
Comments
https://cad.onshape.com/documents/d33530b06909083111cf1770/w/5be0429e68b3332e158a3559/e/2ac1b130ef1d31461f8fca54
You'll notice that I copied and pasted the hole UI into my own predicates in the holeCommonUI.fs studio in order to make packaging a bit easier. Since not all of the hole.fs enums/and or bound specs are exported, I also had to copy some of those as well. Lastly, you can see that the editing logic function is also used directly with some manipulations that vary depending on my own settings.
You can also find a basic wrapper for hole.fs here:
https://cad.onshape.com/documents/4c21d0c3c89c0a81aadfdac6/w/a7ccf556a74ce09cd04151e0/e/de971c1cdceeb2372ae0a45f