メッセージ1/4
Need to create Sketch on a Workplane
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- パーマリンクを表示
- 印刷
- 報告
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