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.

Options

offsetSurface FeatureScript Documentation Incomplete

Comments

  • Options
    MichaelPascoeMichaelPascoe Member Posts: 1,713 PRO
    edited June 2023

    Here is an example of how you can use it:

    opExtractSurface(context, id + "extractFace", {
                                "faces" : yourQueryHere,
                                "offset" : 0 * inch });
    
    qThisSide = qCreatedBy(id + "extractFace", EntityType.FACE);
    And here is some more info about it:

    opExtractSurface (context is Context, id is Id, definition is map)

    For Onshape internal use.
    This function takes a list of faces and creates one or more surfaces from those faces. The source faces and body are not affected.

    PARAMETER INFO

    definition is map

    - faces is Query
    List of faces to be converted. If tangentPropagation is true, these are the seed faces.

    - tangentPropagation is boolean   optional
    Whether additional faces should be added to the selection by tangent propagation

    - offset is ValueWithUnits   optional
    Offset extracted surface faces by this distance along normal

    - useFacesAroundToTrimOffset is boolean   optional
    Use surrounding faces extensions to trim offset. Default true.

    - redundancyType is ExtractSurfaceRedundancyType   optional
    Controls the culling of redundant geometry on the result body, such as tangent edges and vertices. ALLOW_REDUNDANCY does not delete any redundant geometry. REMOVE_ADDED_REDUNDANCY removes redundancy created by this operation. REMOVE_ALL_REDUNDANCY removes all redundant edges and vertices. REMOVE_ADDED_REDUNDANCY is the default.


    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   cadsharp.com/featurescripts 💎
  • Options
    Evan_ReeseEvan_Reese Member Posts: 2,064 PRO
    I didn't realize this had built in tangent propagation. Thanks, Michael!
    Evan Reese / Principal and Industrial Designer with Ovyl
    Website: ovyl.io
Sign In or Register to comment.