How split body with sketch line

How split body with sketch line

SandmanINV
Advocate Advocate
614 Views
2 Replies
Message 1 of 3

How split body with sketch line

SandmanINV
Advocate
Advocate

Hello everybody,

I have a body, and i want to split this body by lines in sketch like this.

Capture.PNG

I can extrude by surface then use split feature, but it take slower than if i can split body direct from sketch lines.

1. I read help that i need to create path before use split feature. But i don't know how, please help..

2. I created a sketch contain all of sketch lines which used to split body. But, i don't know how to run statement For...Each... loop. I practice with extrude command but not success. How should i do ?

Dim oTG As TransientGeometry
Set oTG = ThisApplication.TransientGeometry

Dim oline As SketchLine
Set oline = oSketch.SketchLines.AddByTwoPoints(oTG.CreatePoint2d(20, 0), oTG.CreatePoint2d(20, 1200))
Set oline = oSketch.SketchLines.AddByTwoPoints(oTG.CreatePoint2d(40, 0), oTG.CreatePoint2d(40, 1200))
Set oline = oSketch.SketchLines.AddByTwoPoints(oTG.CreatePoint2d(60, 0), oTG.CreatePoint2d(60, 1200))
For Each oline In oSketch.SketchLines
'Extrude
Set oprofile = oSketch.Profiles.AddForSurface
Set oextrude1 = oCompDef.Features.ExtrudeFeatures.AddByDistanceExtent(oprofile, 10, kSymmetricExtentDirection, kSurfaceOperation)
Next

Thank you,

0 Likes
615 Views
2 Replies
Replies (2)
Message 2 of 3

dgreatice
Collaborator
Collaborator

Hi

 

I think Using sketchline it cant be process.

 

convert that line to work plane/worksurface

Please use the ACCEPT AS SOLUTION or KUDOS button if my Idea helped you to solve the problem.

Autodesk Inventor Professional Certified 2014
0 Likes
Message 3 of 3

dakim930114
Enthusiast
Enthusiast

Hello,

 

You can check the attached image for solution of your question.

 

The language is korean, you can understand with the red box location.

 

Thank you.

0 Likes