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.

Pipe feature

andy_morrisandy_morris Moderator, Onshape Employees Posts: 87
We've had requests for a pipe feature, so you can avoid the current create plane --> create profile sketch --> sweep workflow.
Thanks to @ilya_baran and the wonders of FeatureScript, here is a custom feature for pipes.

https://cad.onshape.com/documents/153cc3c8228c34a47f0b88d5/v/584ae1f362b4922e7cec3fe2/e/56f7232dfddc387a4c9e3f9c

Just select the path from edges or sketches and set the OD and ID.

 


Andy Morris / Head of Product Design / Onshape, Inc.

Comments

  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    That's really rather good, and presumably will rebuild just fine if upstream dimensions are changed, just as long as ID's stay the same?

    OwS
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • andy_morrisandy_morris Moderator, Onshape Employees Posts: 87
    Yes, its just like any other Onshape feature in that regards.
    Andy Morris / Head of Product Design / Onshape, Inc.
  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,210
    The latest version (V4) has been updated to also support disjoint straight pipe segments with mate connectors.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • colemancoleman OS Professional Posts: 244 ✭✭✭
    @andy_morris
    If feature scripts are so easy....why don't you guys just make this (and others) standard functionality?
  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    If every custom feature we wrote was added to the standard library, it would be a big polluted mess!
    A good place to say "thank you" for making featurescript so close to the user that we can make "mess" for ourselves. No any other CAD that has scripting environment in a list of standart invironment types on the first page of the project.
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,045 ✭✭✭✭✭
    edited December 2018
    @ilya_baran
    @andy_morris
    @Jake_Rosenfeld
    Here is a pipe feature that works with multiple paths in the one feature (I created my own constructPaths feature)
    https://cad.onshape.com/documents/e89f406ea0fb1b1a9225a055

    PS: Thank you for FeatureScript, otherwise none of this would be possible :)
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • Tony_C_Tony_C_ Member Posts: 273 PRO
    Cool.  Now can you make it put in all the fittings too?  ;)
  • Jake_RosenfeldJake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646
    Great stuff @mbartlett21 !
    Jake Rosenfeld - Modeling Team
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,045 ✭✭✭✭✭
    @Tony_C_
    Can you give an example? :)
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,045 ✭✭✭✭✭
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,045 ✭✭✭✭✭
    I have just made the constructPaths library public (I didn't realise it was private)
    https://cad.onshape.com/documents/3021561771935e716a44c1b1
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,210
    @mbartlett21

    Very cool!
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • owen_sparksowen_sparks Member, Developers Posts: 2,660 PRO
    Botanist cool?
    Business Systems and Configuration Controller
    HWM-Water Ltd
  • sebastian_glanznersebastian_glanzner Member, Developers Posts: 422 PRO
    The pipe feature is really nice!

    You can use it to make compression springs based on helix features:

  • MBartlett21MBartlett21 Member, OS Professional, Developers Posts: 2,045 ✭✭✭✭✭
    :)
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100
  • wout_theelen541wout_theelen541 Member, csevp Posts: 198 PRO
    I just took a look at the FS there's an error generating the pipe in your example part studio
  • robert_barber444robert_barber444 Member Posts: 2
    Is there a way to use this feature with a tapered and bent pipe? I am trying to model a pipe that is 1" on the left end, has a slight bend, and smoothly tapers out to 2" at the right end

Sign In or Register to comment.