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_Armstrong
    Caden_Armstrong Member Posts: 471 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 --- Renaissance --- Kestrel -- SmartLink
    Experts in Onshape Automation - Custom Features and Integrated Applications