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.

Section (New Custom Feature)

MichaelPascoeMichaelPascoe Member Posts: 597 PRO
edited December 2020 in General

Section 

Link:

https://cad.onshape.com/documents/bdffe7bf48f3b4155e85d073/w/4aa864c3858500b61d8570f5/e/310ce09906d1409f3c49a5f2


Created by: 

Michael Pascoe,  Cache River Mill.


Description: 

This custom feature splits and removes a section of the selected parts.


Prerequisites: 

  • One plane or flat face 

  • One or more parts.



Comments

  • Evan_ReeseEvan_Reese Member Posts: 1,049 PRO
    cool feature! I still have yet to mess with the manupulators in FS. what's the use case you need this for instead the standard section tool.
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
  • MichaelPascoeMichaelPascoe Member Posts: 597 PRO
    edited December 2020
    Thanks! I made it for when we are working with wood trim, stair treads, or columns. It's actual purpose is more like an extrude.

    Often, I need to cut trim flush with another part or wall. Sometimes the wall or other part does not fully intersect the part so I can't boolean or extrude from a face. The process usually involves a plane, sketch, and an extrude to cut the entire part to size.
  • Evan_ReeseEvan_Reese Member Posts: 1,049 PRO
    oh nice! I see what you mean.
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
  • Evan_ReeseEvan_Reese Member Posts: 1,049 PRO
    If you think it would be useful, you could make it accept mate connectors as an input too, by making your UIHint like this
    "Filter" : EntityType.FACE || BodyType.MATE_CONNECTOR
    You'll have to add some additional code to tell whether you pick a face or mate connector, then make a plane from it.
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
  • MichaelPascoeMichaelPascoe Member Posts: 597 PRO
    edited December 2020
    Good input. I will try to remember this when I release an update.

    When I have the time, I would like to implement these options:
    - Section "Up To Entity"
    - Section with surface
    - Include hatching
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,642
    @Evan_Reese @MichaelPascoe

    The right way to implement plane or mate connector selection here is with:
    "Filter" : QueryFilterCompound.ALLOWS_PLANE
    and then (as mentioned in the QueryFilterCompound documentation: https://cad.onshape.com/FsDoc/library.html#QueryFilterCompound ) you can just use `evPlane` (no need to figure out whether it is a face or mate connector, evPlane will do it for you).
    Jake Rosenfeld - Modeling Team
  • MichaelPascoeMichaelPascoe Member Posts: 597 PRO
    Legit, thanks Jake!
  • Evan_ReeseEvan_Reese Member Posts: 1,049 PRO
    Thanks, Jake!
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
  • MichaelPascoeMichaelPascoe Member Posts: 597 PRO
    edited March 12

    Update!

    Requested by @Evan_Reese
    • Manipulator acts more like the official section view tool (This was made possible by @Jake_Rosenfeld, Thank you!)
    • Added "Up to vertex" section method
    • Auto detect owner part of face for initial part selection
    • Auto detect "Up to vertex"  if you already have a face and a point pre selected when you start the feature
    I have named the internal portion of the feature. You will need to remove the old feature and add the new one.
    https://cad.onshape.com/documents/bdffe7bf48f3b4155e85d073/w/4aa864c3858500b61d8570f5/e/310ce09906d1409f3c49a5f2


  • billy2billy2 Member, OS Professional, Mentor, Developers, User Group Leader Posts: 1,640 PRO
    Thanks, I've added it to my toolbar.


  • Evan_ReeseEvan_Reese Member Posts: 1,049 PRO
    yeeeessss! This feature was already so handy, and it's now even more so.
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,642
    @MichaelPascoe
     
    Looks great!!
    Jake Rosenfeld - Modeling Team
  • MichaelPascoeMichaelPascoe Member Posts: 597 PRO
    edited June 25


    Update!

    • "Section all" improvements.
    In previous versions, "Section all" would only section entities that were sliced by the section plane. Now, all solid bodies are sectioned if "Section all" is selected.

    https://cad.onshape.com/documents/bdffe7bf48f3b4155e85d073/w/4aa864c3858500b61d8570f5/e/c05408d7f5b69bfedfcabb5e

  • matthew_stacymatthew_stacy Member Posts: 299 PRO
    @MichaelPascoe, I would love to see "section properties" incorporated into a feature script like this (e.g. "I = bh^3 for a rectangular cross-section).  Last I checked, Onshape offers "mass properties" but not section properties (mm^4) for bending calculations and whatnot.

    Regards,

    Matt
  • MichaelPascoeMichaelPascoe Member Posts: 597 PRO
    @matthew_stacy, this would be a good base for something like that. Probably wouldn't be too hard to make. Mostly equations.

  • matthew_stacymatthew_stacy Member Posts: 299 PRO
    @MichaelPascoe, not too hard for a feature-script savvy individual like yourself perhaps.  Significantly more challenging for the rest of us mortals.  Also please pardon the error in my previous message.  The area moment for a rectangular section is (bh^3)/12.  I had previously omitted the "/12".   
Sign In or Register to comment.