Message 1 of 4
Need to create Sketch on a Workplane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am digging to get around creating a sketch on an existing workplane. It is not going through. I request provide me with help.
' a reference to the currently active document. ' This assumes that it is a part document. Dim oPartDoc As PartDocument oPartDoc = ThisApplication.ActiveDocument ' a reference to the component definition. Dim oCompDef As PartComponentDefinition oCompDef = oPartDoc.ComponentDefinition ' a reference to the transient geometry object. Dim oTG As TransientGeometry oTG = ThisApplication.TransientGeometry Dim doc = ThisApplication.ActiveDocument oWP = "WP01" oSketch = oCompDef.Sketches.Add(oWP)
Inventor 2015