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.

opTransform with sketch text will fill holes.

image.png

This image shows what happens when extruding (with opExtrude) after a opTransform (in red) versus directly (in blue) .
Here's a simple code to reproduce the error :

```
const targetPlane is Plane = evPlane(context, { "face" : definition.target });
const planemap is Transform = transform(sketchPlane, targetPlane);
opTransform(context, id + "transform1", { "bodies" : qOwnerBody(definition.faces), "transform" : planemap });
const normal = evPlane(context, { "face" : definition.faces }).normal;
opExtrude(context, id + "extrude1", { "entities" : definition.faces, "direction" : direction, "endBound" : BoundingType.BLIND, "endDepth" : 1*inch, });
```


version used is 2770;

Comments

  • Caden_ArmstrongCaden_Armstrong Member Posts: 329 PRO

    The issue is how you are querying for the faces to extrude.
    When you reference a sketch region, you can filter in the inner loops.

    https://cad.onshape.com/FsDoc/library.html#qSketchRegion-Id-boolean


    qSketchRegion(sketchid, true);

    chrome_vIuMXNOU3F.gif
    www.smartbenchsoftware.com --- fs.place --- Renaissance
    Custom FeatureScript and Onshape Integrated Applications
Sign In or Register to comment.