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.

finding a way to bypass assembly

I’m trying to find a way to generate a BOM without going through the assembly process.
My problem is that I use measured variables to calculate the gap between the bars of a ramp. However, once the assembly is done, the variables are no longer accessible.
Here are my variables:

  • Railing1 -> Measured
  • NbRailing1 -> ceil(#Railing1 / (#SpacingMax + #RailingTube))
  • SpacingPattern1 -> (#Railing1 - (#RailingTube * #NbRailing1)) / (#NbRailing1 + 1)

Is there a way to produce a BOM directly from the Part Studio or to access "NbRailing1" and "SpacingPattern1" in the assembly?
At the moment, all the bars are considered as distinct parts. Could I group them in the Studio so that my BOM recognizes the quantity?
I know I could just retype the numbers in the Assembly Linear Pattern, but there are always modifications to be made, and I want to keep everything parametric.

Tagged:

Answers

  • jelte_steur814jelte_steur814 Member Posts: 232 PRO
    edited November 20

    hmm, the way to go would be through a variable studio so the variable can be used in both the part studio, as well as the assembly, but it doesn't support measured variables i'm afraid…

    Could you calculate Railing1 and drive it with other variables and a formula? that would make it all feasible.
    from my first look it should be rather feasible since it's all linear. A variable for the height of the rails, the gaps between them etc.

  • eric_pestyeric_pesty Member Posts: 1,947 PRO

    I think one way to do this would be to create some ref. geometry, like a surface in your part studio with a hole at each bar location. Then in your assembly you insert the surface, mate the first bar and then use a replicate. Just make sure the "helper surface" is set to "excluded from BOM".

    Have you looked at the possibility using the frame tools? It doesn't actually help with assembly BOM but might be an "alternative" to what you are doing. Do you have other "stuff" you want in the BOM or is just the pieces of metal that make up the railing? In the later case a "cut list" is basically a BOM within the part studio.
    I think you should even be able to generate a cut list from parts not made with the frame tool, it will at least recognize identical parts (although that might not be the issue here if they are all equal anyway)

  • Dessinateur_Soudure_LLDessinateur_Soudure_LL Member Posts: 6

    Hi, I just tried the Frame tool. It seems promising, but I need to delve deeper into it. My issue becomes more irritating when I create a curved and ascending ramp. I use a lot of Linear, Circular, and Curve patterns, and the assembly does not support the Curve.

    Clients often request minor modifications, and the Part Studio handles them very well, but the assembly often breaks. Having to reposition each rail is a bit of a pain.

    Thanks for your quick responses, I'll see what I can do whit the Frame tool.

  • eric_pestyeric_pesty Member Posts: 1,947 PRO

    The "replicate" method also is going to struggle with the spiral as it doesn't handle the orientation well so it's only going to work properly for round bars.

    https://cad.onshape.com/documents/053f024f5a72ce3a401ca89d/w/10fed678ce3ae36947bd2591/e/fd10364e0cec58eb60e7c875?bomType=flattened&renderMode=0&tangentEdgeStyle=1&rightPanel=BOMPanel&uiState=6741003d2e6d1873344f0348

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

    Interesting challenge. I agree with @eric_pesty that the Frames toolset is worth looking into as it might solve some of this. I also think there are a number of custom features that might be helpful too. I made an example here with a few of my custom features.

    1. Linear Pattern Plus can automate the math you're doing with measured variables. It can also make a composite part of the feature outputs
    2. Extract Variables is one I made to accompany Linear Pattern Plus and other features that do calculates I'd like to be made into variables (It only works on features that are written to work with it though, which is almost none right now)
    3. Part Name can be used to put some of those calculated numbers into the part name. For example I added the spacing and number of the vertical bars to the composite part name that way.

    For curve patterns and things like that, I don't have tools right out of the box, but you already seem to understand how to do it with variables. Using Composite Selected (not my feature, but one I love), you could still do something similar. It will let you composite everything that was made by a certain feature (like Curve Pattern), then you could use the variables you're already making along with Part Name to add that info to the composite part name. There's also a great Set Property feature (also not mine) that's more flexible than my Part Name one that you could use to put this info into the part description instead.

    Evan Reese
  • EvanReeseEvanReese Member, Mentor Posts: 2,186 ✭✭✭✭✭

    Also if you're able to do programming or want to learn, Custom Tables would be a great way for you to automatically interrogate the model, get relevant info, and make it a table.

    Evan Reese
Sign In or Register to comment.