Message 1 of 4

Not applicable
09-18-2015
04:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In Sheet Metal Environment I wish to extract CUT's profile and create a new body by EXTRUDing that profile. But when I copy sketch contents from old to a new one, they appear somewhere else. Why? Am I not looking at certain transforms.
Here is the code I am trying:
Private Function CreateNewSketch(faceSketch As PlanarSketch) As PlanarSketch CreateNewSketch = Nothing Dim pl As WorkPlane = GetWorkPlane(faceSketch.PlanarEntity) Dim newsketch As PlanarSketch = Nothing Try newsketch = m_compDef.Sketches.Add(pl) faceSketch.CopyContentsTo(newsketch) Catch ex As Exception MsgBox(ex.Message) End Try CreateNewSketch = newsketch End Function
And here is the result:
Solved! Go to Solution.