Any way to rename Frame parts by their length?

joshtargo
joshtargo Member Posts: 695 EDU
I want to see the lengths of each frame piece in the final Master Assembly BOM, is there any way to get length data in the BOM?

Answers

  • martin_kopplow
    martin_kopplow Member Posts: 1,645 PRO
    You mean like in a cut list?
  • joshtargo
    joshtargo Member Posts: 695 EDU
    You mean like in a cut list?
    I can get the cut list in the part studio, but I want to use those numbers to rename the frame parts so I can easily identify them in other assemblies and the main BOM
  • martin_kopplow
    martin_kopplow Member Posts: 1,645 PRO
    I see the reason to have these lists in the assembly level. Often, I create but one part of each one length in the part studio, and insert it multiple times in the assembly. It makes sense to provide the shop with an assembly cut list. A script to rename parts based on existing values (length, width, ..) according to some predefined naming convention could certainly be helpful.
  • joshtargo
    joshtargo Member Posts: 695 EDU
    The length of the frame members are dynamically dependent on sketches, other parts, and the assembly, I don't specify any lengths. 
  • martin_kopplow
    martin_kopplow Member Posts: 1,645 PRO
    Then it'll be difficult to put it in the part name, I guess. Wouldn't it be possible to (automatically) transfer a measured variable from a parts variable studio into the BOM table, then?
  • joshtargo
    joshtargo Member Posts: 695 EDU
    Then it'll be difficult to put it in the part name, I guess. Wouldn't it be possible to (automatically) transfer a measured variable from a parts variable studio into the BOM table, then?
    maybe, but i don't know how

  • martin_kopplow
    martin_kopplow Member Posts: 1,645 PRO
    Been playing with it, but didn't get real far yet.  :0/
  • Caden_Armstrong
    Caden_Armstrong Member Posts: 472 PRO
    You could do this with a featurescript.

    The cutlist properties for each frame part can be read, and have the name set by the feature.
    If you just want the length property in the BOM, you could use a computed property.

    I wrote up a quick sample you can see here of using a feature to set the name.
    www.smartbenchsoftware.com --- Renaissance --- Kestrel -- SmartLink
    Experts in Onshape Automation - Custom Features and Integrated Applications
  • joshtargo
    joshtargo Member Posts: 695 EDU
    You could do this with a featurescript.

    The cutlist properties for each frame part can be read, and have the name set by the feature.
    If you just want the length property in the BOM, you could use a computed property.

    I wrote up a quick sample you can see here of using a feature to set the name.
    I've had a really hard time trying to make featurescripts. I'm not a programmer at all, and don't really understand how to do almost anything, or to understand the information about how to make scripts. Also the computer property page says it's just for enterprise, and your page said permission denied.
  • Caden_Armstrong
    Caden_Armstrong Member Posts: 472 PRO
    @josh_targo
    My document is set to public, you  should be able to view it.

    The computed properties page is a bit out of date. Its definitely supported in professional accounts.
    www.smartbenchsoftware.com --- Renaissance --- Kestrel -- SmartLink
    Experts in Onshape Automation - Custom Features and Integrated Applications
  • joshtargo
    joshtargo Member Posts: 695 EDU
    I have a free account