New Custom Feature: 8020 "3030" Profile Converter

joshtargo
joshtargo Member Posts: 695 EDU
edited July 2025 in FeatureScript

A custom feature to bulk convert 30x30mm prismatic bodies (works with with mitered ends) into 8020 "3030" profile aluminum extrusion.

future enhancements will obviously be the ability to convert to other profiles, possibly automatically.

can anyone tell me where the official Onshape 8020 library document is?

FS here: https://cad.onshape.com/documents/c639e6e6f97ab010afa4f625/w/3870bae864239ac9975f8ba5/e/093db19f8eb5931ccd5559f2

2025-07-27 14 55 23.png 2025-07-27 14 55 38.png

Comments

  • S1mon
    S1mon Member Posts: 4,637 PRO

    Why would you use this over the standard frame tools?

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • joshtargo
    joshtargo Member Posts: 695 EDU

    because the frame tool is unusable due to not being able to control the orientation of each member Individually (using the 9 point manipulator)

  • S1mon
    S1mon Member Posts: 4,637 PRO

    I agree that it's frustrating to not be able to configure each member's 9-point manipulator selection. I've just started using it for real recently myself, and found that quite problematic. We can individually flip butt joints, but not individually pick from the 9 points.

    However, it's not that hard to just create multiple frame features. That seems much easier for now and better supported.

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • joshtargo
    joshtargo Member Posts: 695 EDU

    it felt like it is also nice to plan and edit the whole structure using cuboids, and then convert everything

    the end

  • joshtargo
    joshtargo Member Posts: 695 EDU
  • joshtargo
    joshtargo Member Posts: 695 EDU

    i can not edit my previous comments (the text disappears when I click edit). but as i was saying, it's nice to use cuboids during design and then convert all at once at the end. I was gonna modify Frame, but it's way too complex. so i wrote my own thing.

  • jnewth
    jnewth Member, OS Professional Posts: 155 PRO

    Hey @joshtargo there isn't an "official" Onshape 8020 profile library the way you might be thinking.

    Something you could make work, however, is to add the frame profile selection code from frame.fs in to your custom feature. You can look at frame.fs ~62 where the profile library is accessed. You can follow the codepath of how this profile is eventually used to make sweeps:
    doFrame > getProfile > sweepFrames > doStablePaths > … > doOneStablePath (there are branches off this codepath but this is the simplest). Eventually you get to sweepOnePath and sweepStartingEdge, where the profile is pulled out, patterned to the "start" of the edge, then swept.

    The frame toolset is fairly large and complex but you don't need very much of it to get the behavior you want (single straight segments). And in your own code you could probably treat each segment as a separate element and create a 9-pt manipulator for them just by lifting it out of the frame.fs code.

    Re: Adding 9-pt manipulators for each path (as you and @S1mon propose above). Seems like a good feature request.

  • joshtargo
    joshtargo Member Posts: 695 EDU

    how do I get to the document of profiles that frame.fs uses?

  • glen_dewsbury
    glen_dewsbury Member Posts: 1,381 PRO

    I don't think you can. You can start a new document with additional profiles to suit your needs.