Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
matthew.greenDLCDJ
258 Views, 1 Reply

Add to sketch of extrusion

So i have a face and i am drawing a sketch on this face and extruding it.  I then would like another sketch on the same face and project the extrusion onto the sketch without the references and I am running into problems.  Here is some of my code .

    Set oExtrude = oCompDef.Features.ExtrudeFeatures.Add(oExtrudeDef)
    Set oSketch = oCompDef.Sketches.Add(oFace, False)
    Dim oFaces As Face
    Dim oEdge As Edge
    
    For Each oFaces In oExtrude.EndFaces
        For Each oEdge In oFaces.Edges
            oSketch.AddByProjectingEntity Edge
        Next
    Next