- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Is it possible to split a 3d line with planes
I am not able to find a Split method on Sketchline3d
{Code}
Sub Split_Lines()
If ThisApplication.Documents.Count = 0 Then Exit Sub
If ThisApplication.ActiveDocument.DocumentType <> kPartDocumentObject Then Exit Sub
' Check to make sure a sketch is active.
If Not TypeOf ThisApplication.ActiveEditObject Is Sketch3D Then
MsgBox "A sketch must be active."
Exit Sub
End If
Dim oPartCompdef As PartComponentDefinition
Set oPartCompdef = ThisApplication.ActiveDocument.ComponentDefinition
' Set a reference to the active sketch.
Dim oSketch As Sketch3D
Set oSketch = ThisApplication.ActiveEditObject
' Set a reference to the transient geometry collection.
Dim oTransGeom As TransientGeometry
Set oTransGeom = ThisApplication.TransientGeometry
Dim SketchLine As SketchLine3D
Dim WorkPl As WorkPlane
Dim i As Integer
For Each SketchLine In oSketch.SketchLines3D
For Each WorkPl In oPartCompdef.WorkPlanes
'What should be done here ??
Next
Next
End Sub
{Code}
Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013
-----------------------------------------------------------------------------
Solved! Go to Solution.