Message 1 of 11

Not applicable
04-09-2016
06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a model with numerous sketch planes (more than 100), and in each sketch i need "project cut edges" feture.
I have written a code that automatically creates workplanes and some sketches, to proceed further i need to have 'project cut edges' feature in all my sketches that i have created. The code i used is pasted below. Could someone help me proceed further?
SyntaxEditor Code Snippet
Sub Main() For i=1 To 10 oDef = ThisDoc.Document.ComponentDefinition Dim oWPlane As WorkPlane oWPlane = oDef.WorkPlanes.AddByPlaneAndOffset(oDef.WorkPlanes("XY Plane"), i, cm) oWPlane.Name = "My_New_Work_Plane"&i Dim oSketch As PlanarSketch oSketch = oDef.Sketches.Add(oWPlane) oSketch.Name = "My_Sketch"&i Dim oTG As TransientGeometry oTG = ThisApplication.TransientGeometry Dim oWorkPoint As WorkPoint oWorkPoint = oDef.WorkPoints.AddFixed(oTG.CreatePoint(0, 0, i)) Next End Sub
Solved! Go to Solution.