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.

New Custom Feature: 8020 "3030" Profile Converter

joshtargojoshtargo Member Posts: 360 EDU
edited July 27 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

  • S1monS1mon Member Posts: 3,433 PRO

    Why would you use this over the standard frame tools?

  • joshtargojoshtargo Member Posts: 360 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)

  • S1monS1mon Member Posts: 3,433 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.

  • joshtargojoshtargo Member Posts: 360 EDU

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

    the end

  • joshtargojoshtargo Member Posts: 360 EDU
  • joshtargojoshtargo Member Posts: 360 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.

  • jnewthjnewth Member, OS Professional Posts: 62 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.

  • joshtargojoshtargo Member Posts: 360 EDU

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

  • glen_dewsburyglen_dewsbury Member Posts: 1,119 PRO

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

Sign In or Register to comment.