Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Add to sketch of extrusion

matthew.greenDLCDJ
Contributor

Add to sketch of extrusion

matthew.greenDLCDJ
Contributor
Contributor

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

 

0 Likes
Reply
259 Views
1 Reply
Reply (1)

k14348
Advocate
Advocate

Hi,

    Can i get sample files with testing code.

 

-Karth

0 Likes