Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good morning everybody
I've create me a little code by search, copy and paste from postings here because I'm not a programmer.
' 'Set a reference to the part dokument
Dim oDoc As Inventor.Document
oDoc = ThisDoc.Document
' Set a reference to the component definition.
Dim oCompDef As PartComponentDefinition
oCompDef = odoc.ComponentDefinition
' Create a new sketch on the X-y work plane.
Dim oSketch As PlanarSketch
oSketch = oCompDef.Sketches.Add(oCompDef.WorkPlanes(3))
It creates me a sktech on the XY-Plane.
Is it possible to activate the sketch directly after creation.
Thanks and nice day

Jörg Weber
CAD Systemtechniker für AutoCAD, Inventor, Vault
Solved! Go to Solution.