Extrude along a line featureScript

isaac_brown497
isaac_brown497 Member Posts: 2 EDU

I'm trying to create a feature that allows me to easily create print-in-place hinges for a personal project.

One of the features is that I can define the angle the hinge is created at. how can I edit my script to make the extrudes occur along the same path as the line given?

Here is the document:

https://cad.onshape.com/documents/41bdb6a292a2dc04a4071116/w/992bbe18a10d9513db5854fa/e/f1d0eb7fac53ba87787ca4ca?renderMode=0&uiState=695d12b426f228db2007ad69

Comments

  • MichaelPascoe
    MichaelPascoe Member Posts: 2,965 PRO

    To extrude a shape along a line you can use opSweep(), but I don't see any reason to use that on a hinge.
    Looks like you just need to draw your other hinge plate shapes and extrude them.

    Can you provide a fully modeled example of what your trying to do? It's always best to prototype your feature before scripting away. You can often save a lot of FS steps by simply modeling it better before you start the feature.

    Here are the best places to learn how to use FeatureScript:

    .


    RENDERCAD - Photorealistic product rendering.
    CADSharp - Professional CAD + software consulting.

    ▚▞▚▞▚▞▚▞▚
  • jelte_steur_info
    jelte_steur_info Member Posts: 683 PRO

    like Michael said. featurescript may be overkill for this situation.
    If you create a fully configurable part studio that allows robust hinge creation, you could then insert them into assemblies, or even part studios using the derive or even amalgamate custom feature.